particle-iot / particle-cli

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

feature/ch55094/usb-list-device-timeout-fallback #588

Closed busticated closed 4 years ago

busticated commented 4 years ago

Description

Running particle usb list when one of your connected devices is "busy" or otherwise unresponsive causes the entire list operation to fail with Request timeout. This change handles device communication timeouts such that your device list is still available regardless.

How to Test

Using a device running some very bad user firmware like:

#include "Particle.h"

void setup() {
}

void loop() {
    while(1);
}

...run particle usb list with multiple devices connected and verify you still get your device list back

Completeness