BLE Mode of Sensor¶
The API sets the BLE mode of the sensor.
Request¶
POST https://{em_ip_address_or_hostname}/ems/api/org/fixture/op/assignblemode/{blemode}
<fixtures>
<fixture>
<id>nn</id>
</fixture>
<fixture>
<id>mm</id>
</fixture>
</fixtures>
Parameters¶
Request¶
Parameter | Description |
---|---|
em_ip_address_or_hostname | Manage’s IP address or hostname |
blemode | Sensor BLE mode: |
- OFF – BLE mode is off; | |
- SCAN – The sensor scans for BLE signals; | |
- BEACON – The sensor sends out BLE signals. | |
id | Sensor identifier. |
Response¶
Parameter | Description |
---|---|
status | nnn – Number of sensors where the BLE mode was updated successfully. |
msg | Error message description. |
-1 – Error message. |
Sample Request¶
The example below shows how to set the BLE Mode for two sensors to the OFF mode. The response indicates that two fixtures have been updated successfully. If there is an error, the error message is displayed.
POST https://192.80.30.2/ems/api/org/fixture/op/assignblemode/OFF
Sample Response¶
<fixtures>
<fixture>
<id>27</id>
</fixture>
<fixture>
<id>28</id>
</fixture>
</fixtures>
{
"status": "2",
}
or
{
"status": "-1",
"msg": "Error..."
}