espruino / EspruinoTools

JavaScript library of tools for Espruino - used for the Web IDE, CLI, etc.
Apache License 2.0
150 stars 89 forks source link

Add `--scan-timeout` option #165

Closed Totalus closed 11 months ago

Totalus commented 11 months ago

Add a --scan-timeout option to allow specifying the max number of seconds to scan for bluetooth devices, allowing to specify a higher scan duration for environment where devices take longer to find.

Fixes partially #141 for espruino --list, espruino -d <devices>

Does not affect espruino -p <name>, however we could most probably use this same option to set the number of attempts (here and achieve the same effect for this command as well.

(Doc is not updated)

gfwilliams commented 11 months ago

That looks great - thanks!