The Live location of beacons inside the building can be received by specifying the MQTT Brooker details. User has to setup his own MQTT Brooker and will fill up the details of MQTT Broker on ALS page.

 

URL: http://als.averos.com/LocationSphereAdministration/GeofenceNotifications/GeofenceSettings

 

Setup Parameters:

  • MQTT Broker URL: MQTT Brooker web address. Example: broker.hivemq.com
  • MQTT Username: Username for connecting to MQTT Brooker. Keep it NULL if no credentials required
  • MQTT Password: Password for connecting to MQTT Brooker. Keep it NULL if no credentials required
  • MQTT Topic: MQTT Topic where the data will be published


 

Body:

{
   " mac":"string",
   " floor_id":uint8,
   " building_id":uint8,
   " region_id":"uint8",
   " company_id":uint8,
   " tag_sr_number":"string",
   "type":"Beacon",
   " xy_location":"sting",
   "utm_xy_location":"string",
   "gps_location":"string",
   "engine_source":"uint8",
   "status":"char",
   "updated_by":uint8,
   "updated_date":"YYYY-MM-DD HH:mm:ss"
}

 

Where:

mac:  MAC Address of Beacon

floor_id: Floor ID of building. It is created at the time of floor creation

building_id: Building ID of building. It is created at the time building creation

region_id: Region ID of a particular region of building. It is created at the time of region creation

company_id: Company ID of ALS for a client. It is created at the time of client creation for ALS. It is provided by Averos

type: This is always Beacon

xy_location: XY Location of Beacon with respect Floor Map

utm_xy_location:  UTM XY location of beacon with respect to Floor Map

gps_location: GPS Location of Beacon with respect to building

engine_source: ALS Engine Source Value

Status: Shows the Status of Beacon in ALS. A = Active. If ‘A’ then it means it is usable for tracking

updated_by: Will always be 0

updated_date: Date Time Stamp

Note: The packet will be sent to the client MQTT Brooker as soon as ALS detects the beacon position inside the building




Sample Response Body:

{
   " mac":"AABBCCDDEEFF",
   " floor_id":5,
   " building_id":5,
   " region_id":"5",
   " company_id":5,
   " tag_sr_number":"A0220010004",
   "type":"Beacon",
   " xy_location":"{\"X\":\"300.12295365333557\",\"Y\":\"581.8760205327155\"}",
   "utm_xy_location":"{\"X\":\"441271.9312073191\",\"Y\":\"5024650.090883909\"}",
   "gps_location":"{\"lat\":45.37027393595652,\"long\":-75.75203845389132}",
   "engine_source":"1",
   "status":"A",
   "updated_by":0,
   "updated_date":"2018-04-04 10:19:19"
}