IoT Stadium

API Documentation

Widget

Widget - Get BLE Gateway List

Getting the list of added BLE gateways

Get
https://api.iotstadium.com/ext/ble-gateway
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Authorization",
      "value": "Bearer {{token}}"
    }

Parameter

Field Type Description

{
    "message": "success",
    "code": 200,
    "data": {
        "ble_gateways": [
            {
                "id": 47,
                "gateway_id": "acacacac-0000-4444-acac-050505050505",
                "gateway_name": "gateway-name",
                "description": null,
                "connectivity_type_id": 1,
                "deveui": "deveui-char",
                "gateway_network_id": 2,
                "token": "token code",
                "connectivity_type": {
                    "id": 1,
                    "name": "MQTT"
                },
                "device_thethings": null,
                "gateway_network": {
                    "id": 2,
                    "name": "Helium"
                }
            },
            {
                "id": 30,
                "gateway_id": "14141414-cccc-ffff-bbbb-8b38cb1737b3",
                "gateway_name": "gateway-testing-worker",
                "description": null,
                "connectivity_type_id": 3,
                "deveui": "AAAAAAAAAAAAAA",
                "gateway_network_id": 1,
                "token": false,
                "connectivity_type": {
                    "id": 3,
                    "name": "LoRaWAN"
                },
                "device_thethings": {
                    "id": 244,
                    "app_key": "4AAAA3333DDDDFFFF8888111177AA7A",
                    "join_eui": "AAAAAAAAAAAAAA",
                    "frequency_plan_id": "US_902_928_FSB_3",
                    "lorawan_phy_version": "PHY_V1_0_3_REV_A",
                    "lorawan_version_mac": "MAC_V1_0_3",
                    "dev_eui": "AAAAAAAAAAAAAA",
                    "downlink_encoder": "function encodeDownlink(input) {\n return {\nbytes: [],\n    fPort: 1,\n         warnings: [],\n    errors: []\n  };\n}\n\nfunction decodeDownlink(input) {\n  return {\n    data: {\n bytes: input.bytes\n    },\n    test: [],\n    errors: [],\n    warnings: []\n\n  }\n}",
                    "uplink_decoder": "{}",
                    "device_type_id": 0
                },
                "gateway_network": {
                    "id": 1,
                    "name": "TTN V3"
                }
            },
            {
                "id": 23,
                "gateway_id": "bbbbbbbb-9999-4444-bbbb-99999999eeee",
                "gateway_name": "AAA Edit",
                "description": "AAA Edit",
                "connectivity_type_id": 3,
                "deveui": "AEAEAEAEAEAEAEAE",
                "gateway_network_id": 1,
                "token": false,
                "connectivity_type": {
                    "id": 3,
                    "name": "LoRaWAN"
                },
                "device_thethings": {
                    "id": 239,
                    "app_key": "AEAEAEAEAEAEAEAEAEAEAEAEAEAEAEAE",
                    "join_eui": "AEAEAEAEAEAEAEAD",
                    "frequency_plan_id": "EU_863_870",
                    "lorawan_phy_version": "PHY_V1_0_3_REV_A",
                    "lorawan_version_mac": "MAC_V1_0_3",
                    "dev_eui": "AEAEAEAEAEAEAEAE",
                    "downlink_encoder": "zz",
                    "uplink_decoder": "zz",
                    "device_type_id": 0
                },
                "gateway_network": {
                    "id": 1,
                    "name": "TTN V3"
                }
            },
            {
                "id": 22,
                "gateway_id": "77777777-6666-4444-9999-dddddddd8888",
                "gateway_name": "ble gateway ttn-1",
                "description": "desc 1111",
                "connectivity_type_id": 3,
                "deveui": "",
                "gateway_network_id": 0,
                "token": "token code",
                "connectivity_type": {
                    "id": 3,
                    "name": "LoRaWAN"
                },
                "device_thethings": null,
                "gateway_network": null
            },
            {
                "id": 21,
                "gateway_id": "98989898-c4c4-4666-9aaa-558f558f558f",
                "gateway_name": "eBLE A",
                "description": "eBLE gw",
                "connectivity_type_id": 3,
                "deveui": "AAAAAAAAAAAAAADD",
                "gateway_network_id": 1,
                "token": false,
                "connectivity_type": {
                    "id": 3,
                    "name": "LoRaWAN"
                },
                "device_thethings": {
                    "id": 256,
                    "app_key": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAADD",
                    "join_eui": "AAAAAAAAAAAAAADD",
                    "frequency_plan_id": "US_902_928_FSB_2",
                    "lorawan_phy_version": "PHY_V1_0_3_REV_A",
                    "lorawan_version_mac": "MAC_V1_0_4",
                    "dev_eui": "AAAAAAAAAAAAAADD",
                    "downlink_encoder": "GGG",
                    "uplink_decoder": "GGG",
                    "device_type_id": 0
                },
                "gateway_network": {
                    "id": 1,
                    "name": "TTN V3"
                }
            }
        ]
    }
}
{
    "message": "success",
    "code": 200,
    "data": {
        "ble_gateways": [
            {
                "id": 47,
                "gateway_id": "acacacac-0000-4444-acac-050505050505",
                "gateway_name": "gateway-name",
                "description": null,
                "connectivity_type_id": 1,
                "deveui": "deveui-char",
                "gateway_network_id": 2,
                "token": "token code",
                "connectivity_type": {
                    "id": 1,
                    "name": "MQTT"
                },
                "device_thethings": null,
                "gateway_network": {
                    "id": 2,
                    "name": "Helium"
                }
            },
            {
                "id": 21,
                "gateway_id": "98989898-c4c4-4666-9aaa-558f558f558f",
                "gateway_name": "eBLE A",
                "description": "eBLE gw",
                "connectivity_type_id": 3,
                "deveui": "AAAAAAAAAAAAAADD",
                "gateway_network_id": 1,
                "token": false,
                "connectivity_type": {
                    "id": 3,
                    "name": "LoRaWAN"
                },
                "device_thethings": {
                    "id": 256,
                    "app_key": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAADD",
                    "join_eui": "AAAAAAAAAAAAAADD",
                    "frequency_plan_id": "US_902_928_FSB_2",
                    "lorawan_phy_version": "PHY_V1_0_3_REV_A",
                    "lorawan_version_mac": "MAC_V1_0_4",
                    "dev_eui": "AAAAAAAAAAAAAADD",
                    "downlink_encoder": "GGG",
                    "uplink_decoder": "GGG",
                    "device_type_id": 0
                },
                "gateway_network": {
                    "id": 1,
                    "name": "TTN V3"
                }
            }
        ],
        "total": 2,
        "page": 1,
        "total_page": 1
    }
}
{
    "message": "Unauthorized (token isn’t provided, or is invalid)",
    "code": 401,
    "errors": {
        "message": "Unauthorized (token isn’t provided, or is invalid)",
        "field": "iot API"
    }
}