The API returns details for all gateways on the floor. For example, if there are four gateways on the floor, the API provides details for each gateway.
Request
GET https://{em_ip_address_or_hostname}/ems/api/org/floor/v1/{floorID}/gateways
Parameters
Request | |
em_ip_address or hostname: | The Manage IP address or hostname. |
floorID: | 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: | Gateway Identifier. |
name: | Gateway name. |
xaxis: | Scaled reference of the distance measured in the horizontal dimension from the lower-left corner of the uploaded floor plan. |
yaxis: | Scaled reference of the distance measured in the vertical dimension from the lower-left corner of the uploaded floor plan. |
lastComm: | Time of last sensor communication (YYYY-MM-DD 24HH-MM:SS.sssZ). |
commStatus: | Communication status of the gateway - 'okay' or 'out.' |
Sample Code
Using the Floor ID '1' returned by the Get All Floors API, request gateway details for all gateways on the floor.
GET https://192.80.3.2/ems/api/org/floor/v1/1/gateways |
Comments
Article is closed for comments.