How to use 3rd party BLE listeners

How to use 3rd party BLE listeners

Installation via NAO API V2

Use the ble_listeners POST API with the following content:
{ 
"blelistener":
{
"lon": <longitude, e.g.: 1.38711089059244>,
"lat": <latitude, e.g.: 43.564223026948>,
"alt": <floor altitude, e.g.: 10.0>,
"label": "<Listener MAC address, e.g.: 123456789ABC>",
"is_beacon": false,
"hardware_model_code": "<hardware model code provided by Pole Star>"
}
}

Example request:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/vnd.api+json' --header 'Authorization: XXXX' -d '{ \
"blelistener": \
{ \
"lon": 1.38711089059244, \
"lat": 43.564223026948, \
"alt": 10.0, \
"label": "123456789ABC", \
"is_beacon": false, \
"hardware_model_code": "My_Hardware_Model_Code" \
} \
}' 'https://www.nao-cloud.com/api/v2/sites/9106/ble_listeners'
You can find your API Authorization token on NAO Cloud, on your profile, by clicking on your name at the top and 'My Profile'.

Installation via JSON import


    1. Go to the Infrastructure --> BLE Beacons --> Deployment Plan page on NAO Cloud and click on "Advanced" in the "2. Record the location of installed beacons" Section.
    2. Click on "Import from JSON"



  1. Copy the JSON deployment plan in the following format:
 [{
     "lon" : <longitude>,
     "lat" : <latitude>,
     "alt" : FLOOR ALTITUDE ON NAO CLOUD,
     "label" : "<AP MAC address in the format AABBCCDDEEFF>",
     "provider" : "<Hardware provider>",
     "is_beacon":false,
     "is_ble_listener":true,
     "hardware_model_code":"<hardware model code shared by Pole Star>"
     "building_id": <NAO Cloud building id, if applicable (optional field)>
 }]
  1. Click on Save
  2. The listen deployment plan is ready to use!