The backend app is responsible for initiating a firmware update for the device through a direct method that it can run on the IoT device. The device then acts and downloads the firmware file, runs the firmware update, and finally reconnects to the IoT Hub service. Throughout the process, the IoT device uses the reported properties to update the progress and status of the device.
Device firmware updates
How to do it...
In this topic, we are going to create a C# simulator, which will use the device twin and direct methods to send the firmware update to device:
- Create C# console IoT application.
- Add a Azure.Devices package for NuGet.
- Trigger the remote update to update the device firmware:
client = ServiceClient.CreateFromConnectionString...