lora.provider.update
The lora.provider.update command is used to update an existing LoRa provider.
TR50 Request
{
"1":{
"command":"lora.provider.update",
"params":{
"id": "500000000000000000000001",
"name":"LoRa Provider Name",
"desc":"The description of the LoRa provider.",
"provider":{
"userName" : "providerAccountUsername",
"newField" : "newValue"
},
"enableLocationPublish":true,
"unset":["autoRegThingDefId", "autoRegSecTags", "autoRegSecTags"]
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
Id | String | Yes | The ID of the LoRa provider to update. |
name | String | The name of the LoRa provider. | |
desc | String | The description of the LoRa provider. | |
provider | Array | Encompasses the parameters required to connect to the LoRa provider. Parameters differ by type. Existing values are not deleted if not specified. Any parameters specified here add to or replace existing values. | |
enableLocationPublish | Boolean | If enabled, allows LoRa devices to publish location. | |
autoRegThingDefId | String | A Thing definition assigned to newly created LoRa devices. | |
autoRegTags | Array | Tags assigned to newly created LoRa devices. | |
autoRegSecTags | Array | Security Tags assigned to newly created LoRa devices. | |
unset | Array | An array of fields to unset. All optional parameters are allowed to be unset. |
If the command is sent successfully a success message and the property values found are returned. Otherwise, an error and error message will be returned.
TR50 Response
{
"1": {
"success": true
}
}