You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. The script works fine, I can switch my plug on/off but, the node process doesn't quit and I get an infinite loop :
Status: true
Result of setting status to false: true
New status: false
{ Error: read ECONNRESET
at exports._errnoException (util.js:1020:11)
at TCP.onread (net.js:568:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
{ Error: read ECONNRESET
at exports._errnoException (util.js:1020:11)
at TCP.onread (net.js:568:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
[again and again]
running on ubuntu 17.10 node v6.11.4 and rasbpian node v6.12.2.
Any clue ?
Notice I also get the same problem with only a getStatus :
Yes, that's currently the expected behavior. To end the script, call tuya.destroy(). It currently attempts to keep the socket connected indefinitely.
However, I realize that may not be the best solution to fixing Tuya's crummy API. I'm still thinking about alternative solutions. If you have any ideas, I'm open to hearing them.
Hello. The script works fine, I can switch my plug on/off but, the node process doesn't quit and I get an infinite loop :
running on ubuntu 17.10 node v6.11.4 and rasbpian node v6.12.2.
Any clue ?
Notice I also get the same problem with only a getStatus :
The text was updated successfully, but these errors were encountered: