Let me know if you have any questions or suggestions about the use of the Meridian API.
Thank you for your script. I got a similar requirement from one of my clients so I have used your script and modified it. I have tested it in my client's environment and I was able to print the list of battery based beacons whose power level is less or equal to 30.
In brief, the script now fetches beacons based on pagesize variable defined in line 14. So in my example below and since I only had few beacons in my account, I set the pagesize to 2 so it got information about 2 beacons at a time. For my customer with 5700 beacons, I set it to 200 instead.
The script finally prints all battery based beacons whose battery level is less or equal to the limit variable defined in line 130. The script prints all results to screen as shown below below. It also saves the result in beacons-list.csv file.
The main logic of the script is now documented in the main function shown below. You need to specify the location id and auth token in lines 7 and 8 to use it in your Meridian account.
Script Main Function LogicScript Screen OutputScript beacons-list.csv file output
At Aruba, we believe that the most dynamic customer experiences happen at the Edge. Our mission is to deliver innovative solutions that harness data at the Edge to drive powerful business outcomes.
© Copyright 2020 Hewlett Packard Enterprise Development LPAll Rights Reserved.