How to programmatically scan nearby AltBeacons
How to programmatically scan nearby AltBeacons
I am currently exploring retail advertising options. I am interested in AltBeacon as it is an open standard. I have a basic question, if someone can answer
How to programmatically scan nearby AltBeacons in both (i) central iOS and (ii) central Android devices, and programmatically parse or get RSSI/signal strength, UUID, major ID, minor ID and RSSI at 1 meter? It seems that, Locate App is successfully doing that
1 Answer
1
For Android, the Android Beacon Library does exactly what you say with its accompanying reference app. It sets up a wildcard beacon Region to match all AltBeacon instances, and print out how many it sees. The identifiers and other beacon fields are not printed out, but this can be easily added to RangingActivity.java with beacon.getId1(), beacon.getId2(), beacon.getId3(). For the RSSI at one meter, use beacon.getTxPower().
The iOS Beacon Tools repo provides equivalent functionality for reading AltBeacon on that platform. The README provides examples on how to read the same fields as described above.
beacon.getRssi()
– davidgyoung
Aug 29 at 4:15
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
How to get the actual RSSI/signal strength which is different from RSSI at one meter?
– Simon S
Aug 29 at 3:19