Send data to the device

You manage the device's configuration via its online Device Shadow. This is the online representation of the device which contains its last known reported state and the configuration to be sent to the device.

When devices send data to the cloud, the response returned is a JSON object containing the desired shadow.

Set desired configuration

To set configuration on a device and save the values to the Device Shadow, Use HERE Tracking web application or HERE Tracking shadows endpoint. Whenever you set new device configurations, the stateVersion of the device shadow in HERE Tracking cloud is incremented. The next time the device synchronises with the cloud, it will receive the configuration along with the new stateVersion.

curl -X PUT \
  https://tracking.api.here.com/shadows/v2/{trackingId} \
  -H 'authorization: Bearer {userToken}' \
  -H 'content-type: application/json' \
  -d '{
    "desired": {
        "payload": {
            "led": "red"
        }
    }
}'

results matching ""

    No results matching ""