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> |
Parameters
Request | |
em_ip_address: | The Enlighted Manage (EM) IP address or host name. |
blemode: | Sensor BLE mode: OFF – BLE mode is off. SCAN – The sensor scans for BLE signals. BEACON – The sensor sends out BLE signals. |
id: | A unique identifier of the sensor. |
Response | |
status: | nnn – Number of sensors where the BLE mode was updated successfully. -1 – Error message. |
msg: | Error message description. |
Sample Code
Set the BLE Mode of the sensor for two fixtures to OFF. 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 |
or
HTTP/1.1 200: OK { "status": "-1", "msg": "Error..." } |
Comments
Article is closed for comments.