The API returns the sensor location for all BLE sensors on the floor. The data is returned as X, Y coordinates of the measured and scaled-down distance from the lower-left corner of the uploaded floor plan. The API also returns the sensor Product code.
Request
GET https://{em_ip_address_or_hostname}/ems/api/org/fixture/blefixture/list/floor/{floor_id}
Parameters
Request | |
em_ip_address: | The Enlighted Manage (EM) IP address or hostname |
floor_id: | Floor identifier. Use the Floor ID returned in the Get All Floors API, or in EM select Facility > Floor > in the left panel, and click the Settings tab. |
Response | |
id: | Sensor identifier. |
name: | Sensor name. For example, Sensorxxxxxx. |
x-axis: | Scaled reference of the distance measured in the horizontal dimension from the lower-left corner of the uploaded floor plan. |
y-axis: | Scaled reference of the distance measured in the vertical dimension from the lower-left corner of the uploaded floor plan. |
groupid: | Profile group identifier. The ID of the profile associated with the fixture. |
macAddress: | MAC address. |
modelNo: | Sensor product code. For product codes, refer to the list of Sensors and Product codes in the Spec Sheets. |
Sample Code
Using the Floor ID '1' returned by the Get All Floors API, request EM to return the x- and y-axis of the scaled-down distance from the lower-left corner of the floor plan for all BLE sensors on Floor 1.
GET https://{em_ip_address_or_hostname}/ems/api/org/fixture/blefixture/list/floor/2 |
Comments
Article is closed for comments.