Command Line Interface Tool to verify LoRaWAN leaf devices configured in Azure IoT Hub for the Azure IoT Edge LoRaWAN Gateway: http://aka.ms/lora
You can create an platform specific executable by running
dotnet publish -c Release -r win10-x64
You can run the tool from the command line using .NET Core by executing
dotnet run -- (add verbs and parameters here)
settings.json needs to be in the same directory as the cli-lora-device-checker binary (verifyloradevice.dll or verifyloradevice.exe).
settings.json needs to contain a connection string from the Azure IoT Hub you want to work with. This connection string needs to belong to a shared access policy with registry read, registry write and service connect permissions enabled. You can use the default policy named iothubowner.
{
"IoTHubConnectionString": "HostName=youriothub.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=AeVMLayazGTS9QRMJtFGSSNwdhUdYR5VwCjaafc3DL0=",
}
The following verbs are supported:
verb | description |
---|---|
list | Lists devices. |
query | Query a device twin. |
verify | Verify a device. |
addabpdevice | Add a new ABP device. |
addotaadevice | Add a new OTAA device. |
help | Display more information on a specific command. |
version | Display version information. |
The list verb supports the following parameters:
parameter | description |
---|---|
--page | Devices per page. Default is 10. |
--total | Maximum number of devices to list. Default is all. |
--help | Display this help screen. |
--version | Display version information. |
The query verb supports the following parameters:
parameter | description |
---|---|
--deveui | Required. DevEUI / Device Id. |
--help | Display this help screen. |
--version | Display version information. |
The verify verb supports the following parameters:
parameter | description |
---|---|
--deveui | Required. DevEUI / Device Id. |
--help | Display this help screen. |
--version | Display version information. |
The addabpdevice verb supports the following parameters:
parameter | description |
---|---|
--deveui | DevEUI / Device Id. Will be randomly generated if left blank. |
--appeui | AppEUI. Will be randomly generated if left blank. |
--appkey | AppKey. Will be randomly generated if left blank. |
--gatewayid | GatewayID (optional). |
--decoder | SensorDecoder (optional). |
--classtype | ClassType (optional). |
--help | Display this help screen. |
--version | Display version information. |
The addotaadevice verb supports the following parameters:
parameter | description |
---|---|
--deveui | DevEUI / Device Id. Will be randomly generated if left blank. |
--appskey | AppSKey. Will be randomly generated if left blank. |
--nwkskey | NwkSKey. Will be randomly generated if left blank. |
--devaddr | DevAddr. Will be randomly generated if left blank. |
--gatewayid | GatewayID (optional). |
--decoder | SensorDecoder (optional). |
--classtype | SensorDecoder (optional). |
--help | Display this help screen. |
--version | Display version information. |