BLE Gateway - POST Add BLE Gateway (MQTT)
Adding BLE gateway that uses MQTT protocol
Post{{url_iot_backend}}/ext/ble-gateway
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
}
Parameter
Field | Type | Description |
---|---|---|
gateway_name | String |
Name of the BLE Gateway (required) |
token | String |
The token of your BLE Gateway |
description | String |
The description of your BLE Gateway |
connectivity_type_id | Integer |
The ID of the connectivity type of your BLE Gateway |
device_network | Integer |
The ID for your device network (required | this is taken from the list of device network) |
connectivity_type_id | Integer |
The ID of the connectivity type of your BLE Gateway |
gateway_network_id | Integer |
The ID of your BLE Gateway |
location_id | Integer |
The ID for your the assigned location for your BLE Gateway |
location_custom_field | String |
The additional detail of your location |
{
"gateway_name": "test ble mqtt postman",
"token": null,
"description": "test",
"connectivity_type": 1,
"device_network": 2,
"connectivity_type_id": 1,
"gateway_network_id": 2,
"location_id": 193,
"location_custom_field": [
{
"location_custom_field_id": 316,
"value": "park P1"
}
]
}
{
"message": "ble_gateway created",
"data": {
"id": 51
},
"code": 200
}
{
"message": "Invalid Message",
"code": 400,
"errors": [
{
"field": "gateway_name",
"message": "The gateway name field is required.."
}
]
}