lora.provider.create

The lora.provider.create command adds a new LoRa provider.

TR50 Request

{
   "1":{
      "command":"lora.provider.create",
      "params":{
	   "name":"LoRa Provider Name",
	   "desc":"The description of the LoRa provider.",
	   "type":"",
	   "provider":{
		"userName" : "providerAccountUsername",
		"password" : "P@$$w0rd"
	    },
	   "enableLocationPublish":true,
	   "autoRegThingDefId":"550000000000000000000005",
	   "autoRegTags":["tag1", "tag2"],
	   "autoRegSecTags":["secure", "restricted"]
	}
   }
}

Request Parameters

Name Type Required Description
name String Yes The name of the LoRa provider.
desc String   The description of the LoRa provider.
type String Yes The type of the LoRa provider
provider Array Yes Encompasses the parameters required to connect to the LoRa provider. Parameters differ by type.
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.

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 newly created LoRa provider.