background image

The 

 --recursive 

 argument instructs git to clone other GitHub repos this SDK depends on.

Dependencies are listed 

here

.

5. In the same 

azure-iot-sdk-c-pnp-SUSI-AllDevice

 folder, create a folder to contain the compiled

app.

mkdir

 cmake 

cd

 cmake 

6. In the 

cmake

 folder you just created, run CMake to build the entire folder of Device SDK including

the generated app code.

cmake .. 
cmake --build 

.

 -- /m /p:Configuration

=

Release 

7. Once the build has succeeded, you can test it by invoking the following command.

Integration with Azure IoT Explorer

Connect

Enter the 

connection string

 from Azure CLI and press 

Save

. You will see a device 

symm-key-

device

az iot hub show-connection-string --name my-sample-hub --key primary --query connectionString -o tsv 

Telemetry

Release\\PNP_SUSI.exe 

"EIS_D210"

 

"1"

 {dps ID Scope} {dps Registration ID} {dps Primary Key}

Содержание EIS-D210

Страница 1: ...device simplifies the process of building devices without custom device code Using Solution builders can integrated quickly using the certified IoT Plug and Play enabled device based on Azure IoT Central as well as third party solutions This getting started guide provides step by step instruction on getting the device provisioned to Azure IoT Hub using Device Provisioning Service DPS and using Azu...

Страница 2: ...nd a Device Provisioning Service 2 Get the connection string for the IoT hub and place it into a variable 3 Link the IoT hub and the provisioning service 4 Get ID Scope Copy the ID Scope key az group create name my sample resource group location centralus az iot hub create name my sample hub resource group my sample resource group location az iot dps create name my test dps resource group my sampl...

Страница 3: ... at the top In the Add Enrollment panel enter the following information and press the Save button Mechanism Select Symmetric Key as the identity attestation Mechanism Auto generate keys Check this box Registration ID Enter a registration ID to identify the enrollment Use only lowercase alphanumeric and dash characters For example symm key device IoT Hub Device ID Enter a device identifier For exam...

Страница 4: ...Visual Studio Installer 2 Install git Confirm git is in your PATH by typing git version from a command prompt 3 Install CMake Make sure it is in your PATH by typing cmake version from a command prompt CMake will be used to create Visual Studio projects to build libraries and samples 4 Clone the the SDK to your local machine using the refresh preview branch git clone recursive single branch branch ...

Страница 5: ... folder of Device SDK including the generated app code cmake cmake build m p Configuration Release 7 Once the build has succeeded you can test it by invoking the following command Integration with Azure IoT Explorer Connect Enter the connection string from Azure CLI and press Save You will see a device symm key device az iot hub show connection string name my sample hub key primary query connectio...

Страница 6: ...omnent You will see the telemetry data on the screen Property and Command You can press the item in the green rectangle to show the properties You can press the item in the blue rectangle to start a command In the command using you can type some number to try the GPIO interface ...

Страница 7: ...Additional Links Please refer to the below link for additional information for Plug and Play ...

Страница 8: ...Manage cloud device messaging with Azure IoT Explorer Import the Plug and Play model Configure to connect to IoT Hub How to use IoT Explorer to interact with the device ...

Отзывы: