Is there a way to update telemetry type in a twin?

Amith R Koradakeri 21 Reputation points
2020-12-11T07:04:12.897+00:00

Hello Team,

I am a beginner in Azure digital twin world.
I was trying to read telemetry data from IoT device and want to assign it to a twin of type telemetry, but that is not working. When I keep the type as property in that twin this it works.

I have followed below article for updating property type
https://video2.skills-academy.com/en-us/azure/digital-twins/how-to-ingest-iot-hub-data

Is there anyway by which we can update or stream the telemetry type of a twin. If not then what is the use of keeping a telemetry type in a twin?

Regards,
Amith

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
224 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
591 questions
0 comments No comments
{count} votes

Accepted answer
  1. Matthijs van der Veer 4,376 Reputation points MVP
    2020-12-11T07:16:08.323+00:00

    Hi Amith,
    Great question, this is one of the first things most people run into with Azure Digital Twins (ADT). The best explanation for this is in this docs article. I'll quote a part here, but please always refer to the latest docs version.

    Properties are expected to have backing storage. This means that you can read a property at any time and retrieve its value. If the property is writeable, you can also store a value in the property.

    Telemetry is more like a stream of events; it's a set of data messages that have short lifespans. If you don't set up listening for the event and actions to take when it happens, there is no trace of the event at a later time. You can't come back to it and read it later.

    • In C# terms, telemetry is like a C# event.
    • In IoT terms, telemetry is typically a single measurement sent by a device.

    If you want to store the values of your telemetry, please use a property. If you just want to describe that your device has this capability and need to react to it outside of ADT, you can use telemetry.

    Hope this helps!


0 additional answers

Sort by: Most helpful