beacons-android
beacons-android copied to clipboard
Raspberry pi 3 with AndroidThing support
@adriancretu It is possible to add support for Raspberry pi 3 with Android Things installed?
The AdvertisersManager
class currently checks if multiple advertisement is supported, and it's not supported on the RPI3.
I tried removing that check and the advertising seems to work fine. Not sure about any other features that require the multiple advertisement support.
Maybe this could be an optional requirement?
The Android framework will call isMultipleAdvertisementsSupported internally as well, so if you think you get away with commenting out that check you'd be disappointed. That call gets forwarded to the native BLE stack and should be implemented (if possible) by the vendor, otherwise there will not be any BLE advertisements available. The library just conveniently does the call to prevent future attempts that are known to fail, and to give the app a reason to inform the user of BLE peripheral mode unaivailability.