tuya / tuya-iot-core-sdk

Tuya IoT Core SDK
MIT License
23 stars 13 forks source link

Tuyalink support for other systems #1

Open eos1d3 opened 2 years ago

eos1d3 commented 2 years ago

The initial example shows how to use Tuyalink for Ubuntu. But it is not useful as most applications will be implemented in microcontrollers. For example, ESP32 chips are very commonly for IoT. Will there be ESP32 smart light example to show how it works?

If not, can you provide documents to show smart light is implemented? What API/MQTT topics are required to connect and response to actions and reports?

matter-iot commented 2 years ago

https://developer.tuya.com/en/docs/iot/MQTT-protocol?id=Kb65nphxrj8f1

matter-iot commented 2 years ago

https://github.com/Tuya-Community/Raspberry_PI_Gateway_connects_to_iot_platform/blob/ad3aa0a6baf39b6a0de62e434793fb079f574e6f/src/tuyalink_core.c#L62

matter-iot commented 2 years ago

I already implemented in ESP32,use MQTT is simple

joaoclobocar commented 2 years ago

@chuhangRadarDev , you mean the MQTT example supplied by espressif can be a good starting point?

matter-iot commented 2 years ago

@chuhangRadarDev , you mean the MQTT example supplied by espressif can be a good starting point?

yes,you can use any of your mqtt clients。Check the documentation to get the user name and password generation method, and you can also refer to the SDK to achieve this