Location Beacon API Reference Follow
REST Resources
You can use the Locations endpoint to get all of the Beacons for a specific location ID.
/api/locations/{location_id}/beacons
You can get information on a specific Beacon using its MAC.
/api/locations/{location_id}/beacons/{MAC}
Changes made to a Beacon’s state in the Meridian Editor’s Beacons Management tool are sent as changesets to observers that are capable of modifying those Beacons, such as Aruba APs and IAPs. Changes are limited to Beacon type (Proximity or Location) and Proximity Beacon power level.
/api/locations/{location_id}/beacons/{MAC}/changesets
Equality Filtering
The results of the Beacons API can be filtered by the following properties on exact values:
- map
- type
- last_observation.major
Inequality Filtering
The results of the Beacons API can be filtered by an inequality expression, such as less than (<), using the inequality URL query parameter. Filtered results are automatically sorted by the filtered property.
For example, to return a paginated list of beacons with battery levels less than 50% use this query parameter:
?inequality=last_observation.battery_level<50
Filtering is supported on the following fields:
- last_observation.battery_level
- last_observation.timestamp
The following inequalities are supported:
- >
- >=
- <
- <=
Beacon Field Reference
Here are descriptions of the fields returned by the Beacons API endpoint.
created and modified |
Timestamp (ISO 8601) Timestamps for when a Beacon was deployed to a map and when a Beacon’s state was last changed. |
mac |
String (MAC Address) A Beacon’s MAC. |
type |
String (proximity_beacon, or location_beacon) Whether a Beacon is configured as a location or proximity Beacon. |
map |
Integer The map where a Beacon is deployed. |
x and y |
Float The specific x/y coordinates of the Beacon on a map. |
latitude and longitude |
Float The specific latitude and longitude coordinates of the Beacon. |
major and minor |
Integer The Beacon’s major/minor values. |
UUID |
String The Beacon’s universal unique identifier. |
name |
String The Beacon name. Defined in the Aruba Beacons app. |
firmware_a_version and firmware_b_version |
String The Beacon firmware version. Some Beacon hardware has a second bank for use when the Beacon firmware is being upgraded. |
rssi |
Integer The Beacon received signal strength indication, as received by the last observer. (Beacons management must be enabled) |
battery_level |
Float The Beacon battery level. Powered beacons can return values greater than 100. (Beacons management must be enabled) |
txpower |
Integer Beacon transmission power. |
timestamp |
Timestamp (ISO 8601) The last time the Beacon was observed. |
observer |
The ID of the Beacon’s observer for the most recent timestamp. |
managed |
Boolean Is the Meridian Editor’s Beacons Management feature in use for this Beacon? |
location |
Integer The Beacon’s location ID. |
ap_mac |
String (MAC Address) If this beacon is attached to an Access Point (AP), the Beacon’s AP MAC address. |
Comments
0 comments
Please sign in to leave a comment.