The BluetoothManager closeDevice(String mac) { ... } removes the closed device from the bluetooth managers device list.
Calling close() on the BluetoothManager closes the device but does not remove it from the device list.
Trying to reconnect to a previously connected device will result in the BluetoothManager finding a closed device and the BluetoothSerialDevice to throw IllegalArgumentException since requireNotClosed() will fail.
The BluetoothManager
closeDevice(String mac) { ... }
removes the closed device from the bluetooth managers device list.Calling
close()
on the BluetoothManager closes the device but does not remove it from the device list.Trying to reconnect to a previously connected device will result in the BluetoothManager finding a closed device and the BluetoothSerialDevice to throw IllegalArgumentException since
requireNotClosed()
will fail.