tuya / tuya-iot-core-sdk

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

Difference between TuyaLink and TuyaOS development methods #2

Open ViktorVerchenko opened 1 year ago

ViktorVerchenko commented 1 year ago

I have build my own device based on "tuya-iot-core-sdk" using ESP32 and TuyaLink development method. It works fine. But I can get access to it only via "Smart Industry" app (or through the debug web page on iot.tuya.com). Our bosses want to use standard "Smart Life" app. So, for this purpose I've used TuyaOS development method and "tuya-iot-link-sdk-embedded-c-without-submodules" example, based on my own esp32 chip (not on tuya's module). I've purchased two free licenses for it. In the end I get "Connection not authorized(11)" message. Can I build my device without tuya's modules and use "Smart Life" app for access? Do I need another license or use only China data center in "Smart Life" and device? Or problem is different?

ViktorVerchenko commented 1 year ago

I've resolved my issue with access to "Smart Life", but I still didn't understand, what is the difference between these two methods? What benefits do I get from TuyaLink compared to TuyaOS ?

wenstonqq commented 1 year ago

First,the biggest difference is that TuyaLink uses the object model, while TuyaOS uses the internally mature dp model.

Secondly, different scenarios are targeted. TuyaOS is mainly in the field of smart home, which requires the use of graffiti modules or TuyaOS SDK; On the other hand, TuyaLink focuses on industrial and agricultural scenarios, connecting more mature finished products to the graffiti cloud. TuyaLink is a supplement to the TuyaOS device access field, and there is no mutual substitution。

aseyfi commented 1 year ago

@ViktorVerchenko , you said "I've resolved my issue with access to Smart Life". Were you able to add example devices of this demo to Smart Life App? I used data_model_basic_demo sample code and in iot.tuya.com I can see that my device is online, but I don't know how to communicate with it via Smart Life app.

CC @wenstonqq

wenstonqq commented 1 year ago

Smart

you can read this page https://developer.tuya.com/en/docs/iot/application-dev?id=Kbf53a58zz6t1#title-3-Device%20binding%20code

chinthakaak commented 6 months ago

@ViktorVerchenko could you briefly explain how did you use tuya-iot-link-sdk-embedded-c-without-submodule to work with esp32 chip. I am struggling to find a proper approach anywhere.