I am using a library called beacon_broadcast
when I start the beacon broadcast, it outputs an error in the console, but I'm not able to catch it (try
, .catchError
, and using .then
doesn't work).
Console Output:
D/BeaconParser( 7318): Parsing beacon layout: blah_blah_blah
D/BluetoothAdapter( 7318): isLeEnabled(): ON
D/BluetoothAdapter( 7318): isLeEnabled(): ON
E/BeaconTransmitter( 7318): Advertisement start failed, code: 2
Error code 2
means advertising slot not available.
I do not think that I need to show my source code for this, since this does not seem to be a problem with my code, but rather a question about how to do something under specific circumstances.