Device Properties
Property provides mechanisms for managing data, access control, synchronization, and notifications.
Property
Each device contains properties, which are individual pieces of data or control points that can be monitored or manipulated.
AccessMode
Read
- Property can only send data to the cloudWrite
- Property can only receive data from the cloud but cannot sendReadWrite
- Property can send and receive data to/from the cloud
DataTypes
String
Integer
Float
Boolean
-Color
- RGB format
SyncStrategy
Periodic
- If property access mode is Read, the value will be sent to cloud every x milliseconds. If access mode is ReadWrite, the value is synced immediately to the cloud- Usage:
setSyncStrategy(SyncStrategy::Periodic, 15000);
- Usage:
OnChange
- If property value changes, it will be sent to the cloud immediately.- Usage:
setSyncStrategy(SyncStrategy::OnChange, 0);
- Usage: