This article contains the following:
A use Azure Sphere SDK to retrieve a CA certificate and configuring Azure IoT Hub DPS services;
Creating IoT Hub;
Creating DPS;
Obtain a certificate by Azure Sphere SDK and uploaded to DPS for verification.
Second Example of use of the advanced application deployed to Azure Sphere boards and report data to the IoT Hub;
Visual studio to prepare environmental Azure Sphere SDK :( need to uninstall the previous section, and then reinstall Azure Sphere SDK For Visual studio)
In Visual studio project to compile and debug;
In the DPS check register group and IoT Hub;
It was observed in the device to a data cloud of Azure IoT Hub explorer.
Video Tutorial:
You can watch a video explaining this section in B station: https://www.bilibili.com/video/av98475432/
Or at the site to watch:
Photo explanation:
A use Azure Sphere SDK to retrieve a CA certificate and configuring Azure IoT Hub DPS services;
Creating IoT Hub;
Creating DPS;
Obtain a certificate by Azure Sphere SDK and uploaded to DPS for verification.
key step:
Download Azure Sphere tenants certificate:
azsphere tenant download-CA-certificate --output C:\CAcertificate.cer
Get a verification certificate:
azsphere tenant download-validation-certificate --output C:\ValidationCertification.cer --verificationcode codeXXXXX
As verified by FIG.
Create a group registration:
Create a group registration:
Second Example of use of the advanced application deployed to Azure Sphere boards and report data to the IoT Hub;
Visual studio to prepare environmental Azure Sphere SDK :( need to uninstall the previous section, and then reinstall Azure Sphere SDK For Visual studio)
In Visual studio project to compile and debug;
In the DPS check register group and IoT Hub;
It was observed in the device to a data cloud of Azure IoT Hub explorer.
Note that this step will need to uninstall the previous talk among Azure Sphere SDK for windows, then install the Azure Sphere SDK for Visual studio
Sample code to modify a position:
Compile the project:
Compile CMakelist.txt (right mouse button)
Select GDB Debugeger (HL Core) and start debugging
After compilation, you can see telemetry has begun sending a message to the IoT Hub:
Registration records Iot Hub DPS Inspection Unit:
In IoT Hub Device check Device Record:
Use Azure IoT Hub Explorer to view the message D2C
In this section, regarding the content of Azure IoT Hub DPS, see:
" Azure Azure intelligent cloud IoT DPS ten minutes Intermediate series of articles directory "