Set 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 
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
   <fixtures>
       <fixture>
            <id>27</id>
        </fixture>
           <fixture>
                <id>28</id>
          </fixture>
    </fixtures>

HTTP/1.1 200: OK
  {
    "status": "2", 
  }

 or

  HTTP/1.1 200: OK
    {
      "status": "-1",
      "msg": "Error..."
    }
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Article is closed for comments.