I’m trying to put together something that would have one BLE module working as an iBeacon, and a second one as a BLE master that scans and discovers services from nearby devices.
But I’m having some trouble to make this work properly. I think I’ve read pretty much everything on the web trying to find an answer.
Since I want to discover device services, each time the Tessel finds a new BLE, it will try to connect to it and fetch the available services. The problem is that right after the Tessel finishes the connects/disconnects process on all found devices, it seems to freeze everything else (ibeacon and scanning).
I’m not sure if this is a Tessel issue or something that I might be doing wrong, so I’m attaching the source code so you can take a look.
Here's the source code I'm using.