Package 

Class PassiveBluetoothManager


  • 
    public final class PassiveBluetoothManager
    
                        

    This class enables passive monitoring of BluetoothPeripheral. Interaction with the manager is done through .setPassivePeripherals or with a MonitorDeviceRequest. Setting a non empty list of BluetoothPeripheral will automatically start scanning for the peripherals in the background. Setting the passivePeripherals to an empty collection will stop scanning in the background. Anytime a BluetoothPeripheralController starts pairing or reading, all background reading will be cancelled. Controllers that are in the middle of processing will be cancelled and BluetoothListener.onFail will be called if an error of BluetoothError will be called if a listener has been set. After all foreground bluetooth processing has stopped, passive monitoring will be restarted. To make sure duplicate records are not taken readings in the background will not be taken from a device that has taken a background reading within 15 seconds.