To test the demo features of application's option - 2: Azure Device App on the newly provisioned device -
-
X509 Authentication Mode
-
In the source/mqtt_main.h file, update the device ID and hub name/host name on which the device has been registered in the macro
MQTT_CLIENT_IDENTIFIER_AZURE_CERT
andIOT_DEMO_SERVER_AZURE
respectively. Thedevice ID
and theHub name/Host Name
on which the device is registered is shown in Figure 4: Provisioning status message in the operation section of < application >/README.md. -
Since the Azure Hub device is already created, follow the instructions after device creation step in "Without Azure DPS" flow in the corresponding sections from the Operation section of README.md till board programming and the loading of menu on the terminal. Do not update the Azure RootCA, Device Certificate, Private keys in the source/mqtt_main.h file (for non-secure kit) or provision (for secure kit). The same certificates and keys used during registration of device through DPS will be used for IoT hub operations.
-
Now, from the menu the following Azure Hub features can be tested - 2. Azure Device App (C2D, Telemetry, Methods, Twin) and 3. PnP (Plug and Play).
-
-
SAS Authentication Mode
-
In the source/mqtt_main.h file, update the device ID and hub name/host name on which the device has been registered in the macro
MQTT_CLIENT_IDENTIFIER_AZURE_SAS
andIOT_DEMO_SERVER_AZURE
respectively. Thedevice ID
and theHub name/Host Name
on which the device is registered is shown in Figure 4: Provisioning status message in the operation section of < application >/README.md. -
Since the Azure Hub device is already created, follow the instructions after device creation step in "Without Azure DPS" flow in the corresponding sections from the Operation section of README.md till board programming and the loading of menu on the terminal. Generate the SAS token for the device registered on the Azure Hub and update it in source/mqtt_main.h file (for non-secure kit) or provision (for secure kit).
-
Now, from the menu the following Azure Hub features can be tested - 2. Azure Device App (C2D, Telemetry, Methods, Twin) and 3. PnP (Plug and Play).
-