Lab – Automating IoT device management
In this exercise, you will gain an understanding of using Azure IoT Hub automatic device management. Although you will only use one device, this is typically used for many devices. To set up the environment, perform the following tasks:
- In a browser, navigate to your Azure portal and create a resource group and an IoT hub in the resource group.
- In the IoT hub, create a device named
device01
using symmetric key authentication. - Next, download the code for the simulated device from the GitHub repository’s
Chapter04
starter folder. - Open the
simulatedDevice
folder in VS Code. Review the code in the project file. This contains the referenced NuGet packages. - Open the program file and find the following line of code:
private readonly static string deviceConnectionString = "<your device connection string>";
- Enter your device connection string.
- Save and then run the app.
- You should see the...