Telemetry - Add BLE Gateway (LoRaWAN)
Adding BLE gateway that uses LoRaWAN protocol
Posthttps://api.iotstadium.com/auth/ext/ble-gateway
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
}
Parameter
Field | Type | Description |
---|---|---|
gateway_name | Text |
Name of the BLE Gateway (required) |
frequency_plan_id | Text |
The ID of the frequency plan of your BLE gateway (required | this data is taken from the list of API Frequency Plan) |
gateway_id | Text |
The ID of your BLE gateway |
token | Text |
The token of your BLE Gateway |
description | Text |
The description of your BLE Gateway |
connectivity_type | Text |
The ID of the connectivity type of your BLE Gateway |
deveui | Text |
The DevEUI of your BLE Gateway |
device_network | Number |
The ID for your device network (required | this is taken from the list of device network) |
join_eui | Text |
The JoinEUI of your BLE Gateway (required) |
app_key | Text |
The App Key of your BLE Gateway (required) |
lorawan_version_mac | Text |
The MAC version of your BLE Gateway (required | this is taken from list of LoRaWAN version) |
lorawan_phy_version | Text |
The ID of the LoRaWAN phy version of your BLE Gateway (required | this is taken from list of phy version) |
downlink_encoder | Text |
The downlink encoder of your BLE Gateway |
uplink_decoder | Text |
The uplink decoder of your BLE Gateway |
gateway_image_default | Text |
The code of your BLE Gateway |
connectivity_type_id | Number |
The ID of the connectivity type of your BLE Gateway |
gateway_network_id | Number |
The ID of your BLE Gateway |
location_id | Number |
The ID for your the assigned location for your BLE Gateway |
location_custom_field | Text |
The additional detail of your location |
{
"message": "ble_gateway created",
"data": {
"id": 53
},
"code": 200
}
{
"message": "Invalid Message",
"code": 400,
"errors": [
{
"field": "deveui",
"message": "The deveui format is invalid."
},
{
"field": "join_eui",
"message": "The join eui format is invalid. The join eui may not be greater than 16 characters."
}
]
}