Device Configuration
glp/0/{SID}/(rq|fb)/dev/{Edge_Protocol_ID}/{handle}/cfg |
Device configuration provides information regarding the configuration of devices. Generally, this information changes infrequently. Assignment is accepted in the request channel, and the device configuration object is reported in the feedback channel.
Example
Here is an example of storing a user-friendly name and description with the device configuration. The topic you would publish to is: glp/0/{sid}/dev/lon/{handle}/cfg
{ |
Parameters:
Field Name | Type | Description |
---|---|---|
name | string | (Optional) A human-readable name for a device. |
desc | string | (Optional) A free-form description. |
loc | object | (Optional) The location object identifies the location of the edge device. loc consists of the properties described in Location Object. |
DEVICE INFORMATION: name = "Sensor1" protocol = lon device type = 6kEvbMultiSensor handle = 2 // From Handle Allocation, created devices will use 2.1, 2.2 and so on CHANGE CONFIGURATION: change device name mosquitto_pub -t glp/0/17q2d9v/rq/dev/lon/2.2/cfg -m '{ "name":"Sensor1", "Loc": { "desc":"", "lat":"37.3847", "lng":"-121.9847" "ele":"null" } }'