Skip to content

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

ParameterDescription
em_ip_address_or_hostnameManage’s IP address or hostname
blemodeSensor BLE mode:
- OFF – BLE mode is off;
- SCAN – The sensor scans for BLE signals;
- BEACON – The sensor sends out BLE signals.
idSensor identifier.

Response

ParameterDescription
statusnnn – Number of sensors where the BLE mode was updated successfully.
msgError 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..."
    }

Community

Connect and Collaborate with Industrial Professionals and Join the Community!

Click to load comments