IoT Central: Creating property leaves raw data column empty

Stefan Klocke 21 Reputation points
2021-11-16T10:10:41.157+00:00

Dear community,

I am stuggling with defining a device property in IoT Central. I have a temperature sensor, for which the device template is configured such that three different temperature measurement scales are defined as message type "telemetry". The sensor also sends information on manufacturer, product ID and so on. I want to include these information in the device template as type "property", since these are persistent device informations. Goal is to then to create a dashboard in which a "property" tile displays these device informations.

When checking the device's raw data, I see the following:
149782-rawdata.png

the raw data JSON continues with
149708-rawdata2.png

For "VendorName", I have created a capability of type "property" with semantic type "None" and schema "String". However, as the above screenshot shows, the Vendor Name field in the raw data table remains empty. Creating a property tile in a dashboard and assigning the Vendor Name property to it also results in displaying "No Value".
149690-edittemplate.png

If I instead set the capabilty type to "telemetry", then the Vendor Name shows up in the raw data table. Problem now being that if I set the capability type to "telemetry" I won't be able to use the a property tile in the frontend to display the VendorName data.

Question: How do I manage my template such that information such as "VendorName" is specified as capability type "property" (so that I can display it in the dashboard using a property tile), while non-constant data such as temperature information remains specified as type "telemetry"?

I guess I missed something conceptual here. Help is highly appreciated - thank you!

Best
Stefan

Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
367 questions
{count} votes

Accepted answer
  1. Dom 1,631 Reputation points Microsoft Employee
    2021-11-16T10:28:13.22+00:00

    Hi,

    Property values are sent in a separate message type, typically on device start up and whenever a property value changes on the device. The values show up in the raw data view looking something like this:

    {  
        "device_info": {  
            "processorArchitecture": {  
                "reported": {  
                    "value": "arm64-v8a"  
                }  
            },  
            "processorManufacturer": {  
                "reported": {  
                    "value": "unknown"  
                }  
            },  
            "totalStorage": {  
                "reported": {  
                    "value": 121313124352  
                }  
            },  
            "totalMemory": {  
                "reported": {  
                    "value": 3603628032  
                }  
            }  
        },  
        "readOnlyProp": {  
            "reported": {  
                "value": "editable"  
            }  
        },  
        "_eventtype": "Property",  
        "_timestamp": "2021-11-16T10:19:45.997Z"  
    }  
    

    Regards,
    Dominic

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.