This is an edge-case bug, but I found out that if I
Connect to a device
Remove the device from Android bluetooth menu
Reconnect to the device
Try to scan wifi
I get error 133 on writing characteristic and immediately after I get disconnected from GATT with status code 19, which indicates that the device initiated the disconnection for some reason.
I found out that if I call disconnectDevice() in createESPDevice when the bond state of bluetoothDevice is BOND_NONE, this error does not occur anymore and scanning works again. Will fix in PR
This is an edge-case bug, but I found out that if I
I get error 133 on writing characteristic and immediately after I get disconnected from GATT with status code 19, which indicates that the device initiated the disconnection for some reason.
I found out that if I call disconnectDevice() in createESPDevice when the bond state of bluetoothDevice is BOND_NONE, this error does not occur anymore and scanning works again. Will fix in PR