-
Download source codes
-
Setup Device Provisioning Service to create DPS and link IoT Hub to it.
-
Setup Device Provisioning Service Middleware API for backend applications to communicate with DPS.
-
Create crm/src/web/web/appsettings.json file with below content.
{
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*",
"DPS_Scope": "<Your DPS ID_SCOPE>",
"DPS_GlobalEndpoint": "global.azure-devices-provisioning.net",
"API_URL": "<YOUR Device Provisioning Service Middleware API URL>"
}
- To run mock CRM web portal
cd crm/src/web/web
dotnet run
-
If you are using Raspberry Pi, see Setup Raspberry Pi
-
Create src/device_portal/web/appsettings.json with below content
{
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*",
"DPS_Scope": "<DPS ID_SCOPE>",
"DPS_GlobalEndpoint": "global.azure-devices-provisioning.net"
}
- Run device poral
cd dps/src/device_portal/web
dotnet run
- Update dps/src/data/random_telemetry.json
{"data":"sample 1"}
{"data":"sample 2"}
{"data":"sample 3"}
- Run device
cd dps/src/symmetric-key-individual-2steps
dotnet run