I am implementing a IoT Edge App, and I want to set/get the value of ModuleTwin and monitor the value change of ModuleTwin.
My understanding is following:
1. set ModuleTwin: ModuleClient.sendReportedProperties()
2. get ModuleTwin: ModuleClient.getTwin()
3. monitor ModuleTwin: ModuleClient.subscribeToTwinDesiredProperties()
Am I right?
I try to test with iotedgehubdev, but after excute client.getTwin(), there is no callback excuted.
MyFirstModule | Client created MyFirstModule | Open connection to IoT Hub. MyFirstModule | Connection Status: Connected MyFirstModule | Start device Twin and get remaining properties... MyFirstModule | IoT Hub responded to device twin operation with status OK MyFirstModule | Subscribe to Desired properties on device Twin... MyFirstModule | Get device Twin...
What's the problem?