why does my iot central device in provisioned connected status turned disconnected when I update the properties using the IoT Central sdk
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.