IoT Stadium

API Documentation

Telemetry

Telemetry - Add BLE Gateway (MQTT)

Adding BLE gateway that uses MQTT protocol

Post
https://api.iotstadium.com/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)

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

device_network Number

The ID for your device network (required | this is taken from the list of device network)

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": 51
    },
    "code": 200
}
{
    "message": "Invalid Message",
    "code": 400,
    "errors": [
        {
            "field": "deveui",
            "message": "DEVEUI already registered on gateway ble gateway ttn-2"
        }
    ]
}                                                
{
    "message": "Invalid Message",
    "code": 400,
    "errors": [
        {
            "field": "gateway_name",
            "message": "The gateway name field is required.."
        },
        {
            "field": "connectivity_type_id",
            "message": "The connectivity type id field is required.."
        },
        {
            "field": "deveui",
            "message": "The deveui may not be greater than 16 characters."
        }
    ]
}