IoT Stadium

API Documentation

BLE Gateway

BLE Gateway - PUT Update BLE Gateway (LoRaWAN)

Put

{{url_iot_backend}}/ext/ble-gateway/:id
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Authorization",
      "value": "Bearer {{token}}"
    }

Parameter

Field Type Description
gateway_name String

Name of the BLE Gateway (required)

description String

The description of your BLE Gateway

connectivity_type_id Integer

The ID of the connectivity type of your BLE Gateway

deveui String

LoRaWAN device EUI

join_eui String

Join EUI

app_key String

App Key

lorawan_phy_version String

The MAC version of your BLE Gateway (required | this is taken from list of LoRaWAN version)

lorawan_phy_version String

The ID of the LoRaWAN phy version of your BLE Gateway (required | this is taken from list of phy version)

lorawan_version_mac String

The MAC version of your BLE Gateway (required | this is taken from list of LoRaWAN version)

frequency_plan_id String

The ID of the frequency plan of your BLE gateway (required | this data is taken from the list of API Frequency Plan)

band_id String

Band ID

band_id String

Band ID

brand String

Device brand

model String

Device model

hardware_version String

Hardware version

firmware_version String

The installed firmware version

sn String

The device serial number

downlink_encoder String

Downlink encoder

uplink_decoder String

Uplink decoder

{
	"gateway_name": "ble gateway ttn-34", //required
	"description": "desc 1111a2",
    "connectivity_type_id": 3, // required
    "deveui" : "A8404176D18512B7",
    "join_eui" : "2198291829192222",
    "app_key" : "21982918291919012198291829191901",
    "lorawan_phy_version" : "PHY_V1_0_3_REV_A",
    "frequency_plan_id" : "US_902_928_FSB_2",
    "lorawan_version_mac" : "MAC_V1_0_3",
    "brand": "dragino",
    "model": "sai52",
    "hardware_version": "_unknown_hw_version_",
    "firmware_version": "1",
    "band_id": "US_902_928",
    "sn": "SAI290",
    "downlink_encoder":"true",
    "uplink_decoder":"true"
}                                            
{
    "message": "ble_gateway updated",
    "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": "DEVEUI already registered on gateway ble gateway ttn-2"
        }
    ]
}                                                
{
    "message": "Not Allowed",
    "error": {
        "message": "Not Allowed",
        "field": "user"
    },
    "code": 403
}