Error Code 2 In Beacon Transmitter For Android Beacon Library
Solution 1:
A few tips:
The
BeaconTransmitter.checkTransmissionSupported()
method only checks to see if the device has Bluetooth LE and that the operating system will give you aBluetoothAdvertiser
.To see if somebody else has been successful with getting your device to transmit, check to see if it is on this list: http://altbeacon.github.io/android-beacon-library/beacon-transmitter-devices.html
The ADVERTISE_FAILED_TOO_MANY_ADVERTISERS response can indicate that another app is advertising a beacon, and all the advertisement slots are used. Make sure that you don't have any other apps advertising in the background. Reboot or uninstall other apps that might be doing this if necessary.
Try the Locate Beacon app which is based on this same library, and see if it can advertise a beacon successfully. This will eliminate any possible problem with your code.
EDIT: Based on the comments below, it is reasonable to conclude that the firmware for the Intrynsyc eval kit does not properly implement the interface between Android and the Bluetooth chip. Otherwise it would either report that advertising is not available or it would not return an error message when starting advertising. The appropriate next step would be to open an issue with Intrynsyc and report these findings.
Solution 2:
The ability to transmit as a beacon requires Bluetooth LE advertisement capability, which may or may not be supported by a device’s firmware.
Quote from Device Support For Beacon Transmission with Android 5+
Post a Comment for "Error Code 2 In Beacon Transmitter For Android Beacon Library"