Push Sensor Readings into a Tandem Stream
A 3-step recipe with Autodesk. We can help you get access.
Recipe · 3 steps
Push Sensor Readings into a Tandem Stream
with Autodesk · Digital Twin & Asset Data
Ingest sensor readings into a twin stream and verify the series.
- List the IoT streams bound to the twin. Each stream is attached to an element and a property, which is how a raw sensor reading becomes facility data.
- Push the batch of readings into the stream. Batching datapoints rather than posting one request per reading is what keeps a busy gateway inside its rate limits. Requires data:write.
- Read the series back over the requested window to confirm the datapoints landed and to feed a chart. Coarser resolutions roll the raw readings up server-side.
What you'll need to have ready
- twinId: The digital twin facility whose streams are being written to.
- datapoints: Time-stamped readings to push. Each entry carries a timestamp and a value.
- from: Start of the read-back window (ISO 8601 or Unix timestamp).
- to: End of the read-back window (ISO 8601 or Unix timestamp).
- resolution: Resolution to read the series at: raw, minute, hour, or day.
For your developer
Arazzo workflow autodesk:push-and-read-stream-data, 3 operations: getStreams → pushTimeseriesData → getTimeseriesData. Specs on APIs.io.