View attachment 38740
This example uses the BLE2 library to continuously scan for BLE devices, looking for iBeacons.
It never connects to any device. It parses the advertising data and calculates the distance based on the RSSI level (it is pretty inaccurate).
The important code is in the Starter service module.
It starts scanning with the AllowDuplicates parameter set to true.
Whenever a device is found, the data...
Discovering iBeacon devices with BLE2 library
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1YZ9xD0
via IFTTT
Aucun commentaire:
Enregistrer un commentaire