AndiDittrich / NodeMCU-Tool

:wrench: Upload + Manage Lua files on NodeMCU
https://www.npmjs.com/package/nodemcu-tool
MIT License
310 stars 54 forks source link

nodemcu-tool devices not working (Windows) #49

Closed alexandruantochi closed 5 years ago

alexandruantochi commented 6 years ago

running either nodemcu-tool devices or nodemcu-tool devices --port=COM# results in [NodeMCU] No Connected Devices found | Total: 0

I managed to navigate up to function list(){ return _serialport.list(); } but I don't understand why the function calls itself.

AndiDittrich commented 6 years ago

hi @alexandruantochi ,

please check the docs: https://github.com/AndiDittrich/NodeMCU-Tool/blob/master/docs/CommandReference.md#show-connected-nodemcu-modules

alexandruantochi commented 6 years ago

The --all option works, but it lists all ports (including mouse for example). If I use --json I get an empty list [] and without any option I would get that there are no connected devices. Shouldn't the command work without the --all option and output only NodeMCU devices?

AndiDittrich commented 6 years ago

it's the intended behaviour: the NodeMCU modules are produced by different vendors...therefore the USB VID/PID will also be different.

NodeMCU Tool contains a whitelist with some USB vendor IDs used by the "official" NodeMCU modules. you can create a pull request and add addtional modules :+1: