Is there a way to update a Cloud Property for an IoT Device in Azure IoT Hub?
The DTDL for the device Cloud Property is:
{
"@id": "dtmi:solutionModel:modelDefinition:rkkkbmsz:brcdv6wcme:DeviceSerialNumber",
"@type": [
"Property",
"Cloud",
"StringValue"
],
"displayName": {
"en": "Device Serial Number"
},
"name": "DeviceSerialNumber",
"schema": "string",
"minLength": 1,
"trimWhitespace": true
},
I am using the Azure IoT SDKs and C#.
deviceClient.UpdateReportedPropertiesAsync(reportedProperties, cancellationToken);
The property is showing up as "_unmodeleddata". The JSON is:
{
"_unmodeleddata": {
"DeviceSerialNumber": "dsn1i90NEW"
},
"_eventtype": "Property",
"_timestamp": "2022-08-14T23:13:45.966Z"
}