This page defines some common used terms and details about data types of CloudPlugs platform.
CloudPlugs platform uses an internal protocol containing custom data types for HTTP communications between server and clients libraries (requests/responses).
In this section are described the data types referenced in the REST Client documentation
Is a standard format to define data values as a string. Allowed values are: null, true, false, STRINGS, NUMBERS, ARRAYS, OBJECTS. For further details please refer to http://www.json.org/
String (in IoT is the serial number). When associated to a thing (product) it must be unique among all the things of the same model. If associated to a prototype or controller it must be unique among all the prototypes and controllers of the same company.
String: 24 hexadecimal chars (case insensitive)
String: OBJECT_ID, ... (comma separated OBJECT_ID )
String: "dev" or "com" + "-" + OBJECT_ID
String: PLUG_ID, ... (comma separated PLUG_ID )
Array of PLUG_ID or null (empty array => none; not present or null => all)
String: "iot_pt" or "iot_tg" or "iot_ctrl"
String: "ok" or "disabled" or "reactivate"
String: model.secret (of the Data Model)
String: base64( sha1( HWID + MODEL_SECRET ) )
String: base64( sha1( MODEL_SECRET + HWID ) )
String or Number: an ISO date string or a string/number contains the millisecs since the Epoch
String or Number: TIMESTAMP, ... (comma separated TIMESTAMPs)
String: channel name (max 200 bytes)
String: channel mask (max 200 bytes)
String: CHMASK,... (comma separated CHMASK )
Object or Array:
String: HWID (serial number) or Array or Object:
(thing and ctrl are optional)
Warning: not supported yet, present only for future use!.
Array or Object:
(field
is optional, the subfield of the published data value to refer)