lora.device.create
The lora.device.create command is used to add LoRa device. You must create a Thing and pass the thingId
to create a LoRa device. For more information on creating a Thing for LoRa, see thing.create.
TR50 Request
{
"1":{
"command":"lora.device.create",
"params":{
"thingId":"500000000000000000000001",
"deviceEui":"3031323334353637",
"actType":"otaa",
"actOtaaAppKey":"0123456789ABCDEF",
"providerId":"520000000000000000000002",
"provider":{
"deviceProfileId":"LORA/GenericA.1",
"connectivityPlanId":"device/device-trial"
}
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
thingId | String | Yes | The ID of the Thing that is related to the LoRa device. |
deviceEui | String | Yes | The device unique identifier. |
actType | String | Activation type. Defaults to otaa (Over-The-Air-Activation). |
|
actOtaaAppKey | String | Yes | The Over-The-Air-Activation app key |
providerId | String | Yes | The ID of the LoRa provider. |
provider | Array | Provider specific information for the device. |
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
{
"1" {
"success": true,
"params": {
"id": "500000000000000000000001"
}
}
}
Response Parameters
Name | Type | Description |
---|---|---|
id | String | The ID of the LoRa device. |