This repository is for IoT device configuration/provisioning for real-time device to cloud messaging, cloud to device commands, and integration with Microsoft Azure IoT Central.
.NET 6.0 (6.0.25) - SDK (v6.0.417) Linux ARM64 Binary
Raspberry Pi OS 64-bit
- SSH into Raspberry Pi:
ssh [email protected] - Log in to GitHub CLI:
gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations on this host? HTTPS
? Authenticate Git with your GitHub credentials? Yes
? How would you like to authenticate GitHub CLI? Paste an authentication token
Tip: you can generate a Personal Access Token here https://github.com/settings/tokens The minimum required scopes are 'repo', 'read:org', 'workflow'.
? Paste your authentication token: ****************************************
- For First Time ONLY:
gh repo clone JeffreyLaederach/azure-iot-device-config - After that, cd into repo directory using
cd ~/azure-iot-device-configand then rungh repo sync dotnet builddotnet publish --runtime linux-arm64 --self-containedcd /home/user/azure-iot-device-config/bin/Debug/net6.0/linux-arm64/publish/- Input the following one line at a time:
export IOT_DEVICE_MODEL_ID="dtmi:company:<unique-model-identifier>;<model-version-number>"
export IOTHUB_DEVICE_DPS_DEVICE_ID="**********"
export IOTHUB_DEVICE_DPS_DEVICE_KEY="*********************************"
export IOTHUB_DEVICE_DPS_ENDPOINT="global.azure-devices-provisioning.net"
export IOTHUB_DEVICE_DPS_ID_SCOPE="***********"
export MOCK_DATA=False - Run using
./azure-iot-device-config
Note:
Use "Ctrl+C" to stop the program in the terminal.
Type "logout" to end SSH session between computer and microcontroller.