TuyaInc / tuyasmart_home_ios_sdk

Tuya Smart iOS Home SDK
https://tuyainc.github.io/tuyasmart_home_ios_sdk_doc
50 stars 19 forks source link

Does cloud send the PID to the app? #22

Closed FirmwareDeveloper closed 5 years ago

FirmwareDeveloper commented 5 years ago

Hello,

Would you please let me know how the app can prepares the UI for each product? Does the cloud receive the PID from the device, the figures out what DPs this PID has and eventually tell the app to prepare the UI? In another word, does the app needs to receive the PID from cloud or all it needs is the schema (DP IDs)?

Thanks in advance.

TuyaRonbin commented 5 years ago

You can refer to the demo. demo link: https://github.com/TuyaInc/tuyasmart_home_ios_sdk/tree/master/Example

FirmwareDeveloper commented 5 years ago

Thanks for your reply @xuchengcheng , would you please let me know which part of this demo example I can find my answer?

TuyaRonbin commented 5 years ago

Demo including user login, get device list, device control, smart scene , etc