plasticrake / tplink-smarthome-api

TP-Link Smarthome WiFi API
MIT License
1.02k stars 141 forks source link

CLI fails #124

Closed iva2k closed 2 years ago

iva2k commented 3 years ago

In pulled code from current master, and CLI is not working:

git clone https://github.com/plasticrake/tplink-smarthome-api.git
cd tplink-smarthome-api
npm install
npm run build
npm link

Then running command line getting the following error (many commands fail with the same error):

>tplink-smarthome-api getSysInfo 10.0.0.213
Sending getSysInfo command to 10.0.0.213:  via tcp...
Error:
TypeError: Found non-callable @@iterator
at sendCommandDynamic (...\tplink-smarthome-api\lib\cli.js:112:46)                                                                                                                                                              

Windows 10

node -v v12.20.0

typescript@4.2.2