IOT Central : "properties" values not taken into account

BERNARD Thomas 166 Reputation points
2022-01-07T13:00:06.303+00:00

Hello all,

I am facing some problems with "properties" values sent by device to IOT Central application. I do not understand if the problem comes from my template or from the JSON payload sent by my device.

Here my template :
163160-image.png

And one of my payload (processed by IOT Central - the original payload is more simple with only the 2 values) :
163231-image.png

The values are not recognized when they are defined as "properties" in the template, but it works perfectly for "telemetry" values.

On this page, the payload examples for "properties" values look simple, is it missing something ? Is there anything to add in the payload when we would send "properties" values ?
https://learn.microsoft.com/fr-fr/azure/iot-central/core/concepts-telemetry-properties-commands

Thanks in advance for the help !
Thomas

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

Accepted answer
  1. Dom 1,631 Reputation points Microsoft Employee
    2022-01-07T13:49:14.217+00:00

    Hi,

    It looks like your sending the data in the correct format. However, I think it's the way that you're sending the data that's causing the issue.

    Your device should report property values in a different way from sending telemetry.

    Take a look at https://learn.microsoft.com/azure/iot-central/core/howto-use-properties for more information. For complete examples in different programming languages, see https://learn.microsoft.com/azure/iot-central/core/tutorial-connect-device

    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.