Closed ybabel closed 6 years ago
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 :