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

Here's an example send for JSON:

curl -u user:pass -X POST --header "Content-Type: application/json" -d @location.json

Last updated: Aug 23, 2017

Filed Under

Digi Remote Manager

Recently Viewed

No recently viewed articles