Writing data using token

Note: In IMPACT IoT, the downlink operations like Read and Write are queued when the device is offline. Whenever the device comes back online, the queued downlink commands are processed.

To support WRITE commands, devices must listen or SUBSCRIBE to the following topic.

${token}/${resourcepath}/${serialNumber}

Where resourcepathis the identifier of the data item. The value received in the PUBLISH message will be the value to be written.

The resource path is used by the Device to identify the data element to be written and should conform to the /object/objectInstance/resource/resourceInstanceId URI format as used when collecting data.

For example:

The device SUBSCRIBE to topic t8cwp2uneipj/parking/0/timer/8800002400000 to IMPACT IoT.

IMPACT IoT receives a request to write data to the device.

IMPACT IoT sends a PUBLISH with topic t8cwp2uneipj/parking/0/timer/8800002400000 with value 12.

The value 12 is received in IMPACT IoT for the parking timer.