particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

Automate Protected Devices to run `particle usb` commands #753

Closed keeramis closed 1 month ago

keeramis commented 1 month ago

Description

Support Protected Devices while running particle usb xxx commands All of the particle usb xxx commands enable Protection on the device after the command is finished except these two:

Also, added a fix for particle usb cloud-status device-name which was throwing an error due to an already existing bug when using device-name

How to Test

Run particle usb xxx commands on Protected, Protected (Service Mode), and Open Devices. Run them when the device is in normal mode and dfu mode.

Related Issues / Discussions

https://github.com/particle-iot/particle-cli/pull/754 https://app.shortcut.com/particle/story/129067/add-generic-helpers-for-a-device-to-put-into-service-mode-and-back-to-perform-a-cli-operation

Completeness