The sample code is under samples/azure-iot-hub
folder.
If you're curious what Azure IoT Hub is and how to setup and manage Azure IoT Hub, please reference this tutorial and prepare your own IoT hub and device connection string
, which is needed by this sample app.
To build and deploy the sample code, simply follow the same steps/commands as we do for blink
sample. The only difference is the sample folder/app name, which is azure-iot-hub
/azure-blink
instead of blink
.
Follow the same steps as the blink sample. Use SSH to login to Pi device and run the azure-blink
sample with device connection string
parameter you prepared earlier.