Get Gateway Details by Floor

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

{
"gateway": [
{
   "id": "2",
   "name": "GWf9c730",
   "xaxis": "3285",
   "xaxis": "3848",
   "lastComm": "2020-10-19T05:33:04.852Z",
   "commStatus": "okay"
     },
{
   "id": "3",
   "name": "GWf9efa7",
  "xaxis": "2952",
  "xaxis": "4449",
  "lastComm": "2020-10-19T04:32:02.202Z",
   "commStatus": "okay"
     },

{
  "id": "4",
  "name": "GWf9c726",
"xaxis": "2351",
"xaxis": "3715",
"lastComm": "2020-10-19T05:33:04.854Z",
  "commStatus": "okay"
    },
{
"id": "5",
"name": "GWf9c737",
"xaxis": "2902",
"xaxis": "2397",
"lastComm": "2020-10-19T04:44:04.853Z",
"commStatus": "out"
   }
]
}
 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Article is closed for comments.