-
Notifications
You must be signed in to change notification settings - Fork 28
What is
What | 名词解释
PID is the ID of one product, which defines one category of devices: what they are called and what they can do.
For any device connecting to Tuya Cloud, one pair of UUID&AUTHKEY is needed for registration.
When a user is pairing one device to an account, TOKEN is generated on the APP and transfered to device(via WiFi/QR/LAN etc.). Then device uses the TOKEN to register to Tuya Cloud. TOKEN expires in ten minute.
After device registered to Tuya Cloud, a device ID is automatically generated. It specifies the connection between the device and user's account, and is returned to device, used as ID for all following communications with Tuya Cloud.
DP(Data Point) is used to describe/control supported functions. For example, DP 101 is used as a standard IPC data point for status light on/off setting. DP has formats of INT(value), BOOL(switch), ENUM(choices) and STRING(texts). On Tuya Developer Platform, some standard DP is listed with function and format description, developers can also add self-defined DP for customized features.