Closed patilsnr closed 1 year ago
/azp run
/azp run
/azp run
/azp run
@patilsnr can you paste the Json returned by twin.GetSerializedJson? I'd like to check the reported and desired versions are properly formatted.
@patilsnr can you paste the Json returned by twin.GetSerializedJson? I'd like to check the reported and desired versions are properly formatted.
These are logs from the ThermostatSample
that calls the method in question. I'm not sure what it should look like -- what do you think of this?
I don't see the reported/desired versions
I don't see the reported/desired versions
How about this?
Can you paste the text (json) we get from GetTwinAsyc
? we need the $version for reported and desired.
Can you paste the text (json) we get from
GetTwinAsyc
? we need the $version for reported and desired.
Sure:
In this case, a brand new device will return the string expected
when we call GetTwinPropertiesAsync
(which calls GetTwinAsync
internally. Debugging this test shows this for the variable twin
that we get back:
Let me know if this is what you're looking for, this should hopefully show that both reported and desired properties are returning the correct version numbers as well as serializing properly
this should be the same as V1 Twin.ToJson()
{
"reported" : {
"$version" : 1
},
"desired" : {
"$version" : 1
}
}
this should be the same as V1
Twin.ToJson()
{ "reported" : { "$version" : 1 }, "desired" : { "$version" : 1 } }
Okay, with the exception of the key names being different (reported
vs reportedProperties
) they seem to be the same
/azp run
/azp run
/azp run
/azp run
No commit pushedDate could be found for PR 3340 in repo Azure/azure-iot-sdk-csharp
/azp run
/azp run
/azp run
No commit pushedDate could be found for PR 3340 in repo Azure/azure-iot-sdk-csharp
/azp run
/azp run
No commit pushedDate could be found for PR 3340 in repo Azure/azure-iot-sdk-csharp
/azp run
No commit pushedDate could be found for PR 3340 in repo Azure/azure-iot-sdk-csharp
/azp run
No commit pushedDate could be found for PR 3340 in repo Azure/azure-iot-sdk-csharp
/azp run
No commit pushedDate could be found for PR 3340 in repo Azure/azure-iot-sdk-csharp
/azp run
/azp run
No commit pushedDate could be found for PR 3340 in repo Azure/azure-iot-sdk-csharp
/azp run
addresses supporting byte[] in direct methods and making
TwinProperties
able to be directly converted to jsonAPI surface diff: