Request for information #5
Replies: 2 comments 1 reply
-
Hello, Yes you should create 1 structure Then switch to the device for any command setDevice(devxxx ); regards |
Beta Was this translation helpful? Give feedback.
-
Thanks so much its working now. Still need to analyze what I had to do to get it to work I removed this line of code in sendMsg function When left to run in the loop. Every now and again I get a lttle bit of gumph in the platformio monitor and the loop stops for about 5 seconds before carrying on again. Bit of work to do but great fun thanks a lot |
Beta Was this translation helpful? Give feedback.
-
Hi FrBerger I was very happy to find this project
I bought 6 tuya light switch's. registered them with Tuya.
Was able to switch them off and on with tinyTuya
ported your code to platformio and uploaded to a esp32
i can find all devices with FindDevice()
the version that tinyTuya works on is 3.4 and the dp is
{"dps":{"1":true}} from tinyTuya verbose logging
i am trying to switch only 1 device
I am assuming that only this line needs to be changed
sDev disj1 = { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } , { 192,168, 1, 189 }, 4 }; with my key is that correct
im using only
setDevice(disj1);
getStatus();
with debug i receive Connect OK port : 6668, try : 1 IP : IP:192.168.1.189
Im pretty sure my key is correct i have triple checked it
My concern is the debug line after
===== Get Key =====
deserializeJson() returned EmptyInput
I hope you can offer me some advice
Beta Was this translation helpful? Give feedback.
All reactions