The API returns plugload location for all plugloads on a 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 Plugload ID that is returned is used as the primary identifier in other API calls.
Request
GET https://{em_ip_address_or_hostname}/ems/api/org/plugload/v1/location/list/floor/{floor_id}/1
Parameters
Request | |
em_ip_address or hostname: | The Manage 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 to obtain the Floor ID. |
Response | |
ID** | Plugload identifier (**used as the primary identifier in other API calls). |
name: | Plugload name. For example, plugloadxxxxxx. |
xaxis: | Scaled measurement of distance in the horizontal dimension from the lower-left corner of the uploaded floor plan. |
yaxis: | Scaled measurement of distance in the vertical dimension from the lower-left corner of the uploaded floor plan. |
macaddress: | Plugload MAC address. |
groupid: | Profile group identifier. The ID of the profile associated with the plugload. |
Ignore the remaining parameters displayed |
Sample Code
Use the Floor ID '1' returned by the Get All Floors API to return the x- and y-axis of the scaled-down distance from the lower-left corner of the floor plan for all plugloads on Floor 1.
Get https://192.80.3.2/ems/api/org/plugload/v1/location/list/floor/1/1 |
Comments
Article is closed for comments.