Skip to content
Permalink
0d85058cd6
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
17 lines (9 sloc) 2.23 KB

To test the demo features of application's option - 2: Azure Device App on the newly provisioned device -

  • X509 Authentication Mode

    1. 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 and IOT_DEMO_SERVER_AZURE respectively. The device ID and the Hub 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.

    2. 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.

    3. 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

    1. 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 and IOT_DEMO_SERVER_AZURE respectively. The device ID and the Hub 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.

    2. 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).

    3. 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).