If we attempt to add reported properties from .NET SDK for a property that is not defined as a desired property, is it possible?
Does IoT edge runtime automatically sync the desired and reported properties or need to write custom code using SDK?
How do module twin updates work when the device goes offline should we receive the update that we are listing using SDK? For example in .NET SDK there is one method that is SetDesiredPropertyUpdateCallbackAsync.
What if the requirement comes to sync desired properties using reported properties? It is possible using .NET SDK?
Understand the flow of module twin synchronization of azure IOT hub.
I'll try to answer your questions.
Reported means reported back by the device. It reports that your desired property has been received by the device and successfully reported it back. So you can't really use that.
You need some pieces of code to sync the twin
It will be synced once it's back online
Desired to reported is downstream (cloud to device) and reported can be used to trigger backend actions (device to cloud)
Have a further look at the docs: https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-device-twins https://learn.microsoft.com/en-us/azure/iot-hub/module-twins-dotnet