HOW TO: Add a Device Cloud DataStream Containing a Location

Adding a Device Cloud DataStream Containing the Location Coordinates
The following examples show how to add a Device Cloud DataStream with the location where the data value may have been captured:

API Example:

POST to /ws/v1/streams/history

  "stream_id": "testLoc",
  "stream_type": "DOUBLE",
  "value": "42",
    "coordinates":[ -92.5, 44.0, 0.0 ]

XML Example (using curl):

curl -u user:pass -X POST --header "Content-Type: text/xml" -d @location.xml http://devicecloud.digi.com/ws/v1/streams/history.xml

Here's an example send for JSON:

curl -u user:pass -X POST --header "Content-Type: application/json" -d @location.json http://devicecloud.digi.com/ws/v1/streams/history.json

Last updated: Aug 23, 2017

Filed Under

Digi Remote Manager

Recently Viewed Articles

No recently viewed articles