why does my iot central device in provisioned connected status turned disconnected when I update the properties using the IoT Central sdk

Eddie Soong 0 Reputation points
2023-10-08T18:19:00.8866667+00:00

I created my device using IoT Central sdk call:

PUT https://{{AppSubdomain}}.azureiotcentral.com/api/devices/{{deviceId}}?api-version={{dataPlaneGA}}

Body:

{
"displayname" : "12345-PAC",
"template": "dtmi:rnkliqszv:wiipdqd4wj",
"simulated": false.
"enabled": true
}

The device was created and had a status of registered.

Then I have a simulator that sends telemetry data to the device which turns the status of the device to "provisioned".

Then, I called:

PUT https://{{AppSubdomain}}.azureiotcentral.com/api/preview/devices/{{deviceId}}/properties

Body with a list of properties for the device in JSON.

The properties of the device were updated accordingly, however, the devices status turned to disconnected. Why is this?

Note that the device is not connected to a physical sensor. It's like a simulated device but the simulation of the telemetry data is coming from my own python code.

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

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.