Hi,
I just did an update for the particle CLI and now I get this error when I try to flash OTA:
/usr/local/lib/node_modules/particle-cli/commands/CloudCommands.js:229
return api.flashDevice(deviceid, files);
^
TypeError: undefined is not a function
at Object.extend.flashDevice (/usr/local/lib/node_modules/particle-cli/commands/CloudCommands.js:229:14)
at Object.extend.flashCloud (/usr/local/lib/node_modules/particle-cli/commands/FlashCommand.js:128:28)
at Object.extend.flashSwitch (/usr/local/lib/node_modules/particle-cli/commands/FlashCommand.js:120:29)
at Object.BaseCommand.runCommand (/usr/local/lib/node_modules/particle-cli/commands/BaseCommand.js:110:17)
at Object.Interpreter.runCommand (/usr/local/lib/node_modules/particle-cli/lib/interpreter.js:98:13)
at Object.Interpreter.handle (/usr/local/lib/node_modules/particle-cli/lib/interpreter.js:56:18)
at Object.<anonymous> (/usr/local/lib/node_modules/particle-cli/bin/particle.js:20:5)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
Flashing still works with DFU mode using “particle flash --usb,” but it’s a lot more convenient to do it OTA (device is in a bigger console unit). How to fix?
Thanks!