I have set up a project as per the readme, I am able to see all the devices when calling GetAllDevicesInfoAsync(), I also have the correct region set, However when trying to send commands to my smart LED bulb. However I keep getting an exception where the api cant connect to the bulb, the IP address and all other details seem correct but the code locks up at this line in TuyaDevice.cs:
if (!client.ConnectAsync(IP, Port).Wait(ConnectionTimeout)) throw new IOException("Connection timeout");
It seems at the IP connection to the device despite the IP being correct the API times out and cannot connect to the bulb, I have tried to debug it with no luck.
I am able to get other TUYA api's working with my devices however I want to use yours as its locally over the network and has support for the IR Blaster devices.
If you could let me know whats going on I would be very greatful. To the best of my knowledge the bulb and the details i have got from the tuya development page are correct.
James
I have set up a project as per the readme, I am able to see all the devices when calling GetAllDevicesInfoAsync(), I also have the correct region set, However when trying to send commands to my smart LED bulb. However I keep getting an exception where the api cant connect to the bulb, the IP address and all other details seem correct but the code locks up at this line in TuyaDevice.cs:
if (!client.ConnectAsync(IP, Port).Wait(ConnectionTimeout)) throw new IOException("Connection timeout");It seems at the IP connection to the device despite the IP being correct the API times out and cannot connect to the bulb, I have tried to debug it with no luck.
I am able to get other TUYA api's working with my devices however I want to use yours as its locally over the network and has support for the IR Blaster devices.
If you could let me know whats going on I would be very greatful. To the best of my knowledge the bulb and the details i have got from the tuya development page are correct.
James