Jakeler/ble-serial

Connection failed: Device not found

pH-Valiu opened this issue · 4 comments

I get the error: "Bluetooth connection failed. Device not found", although the device clearly exists as I managed to do ble-scan where it popped up and even managed to do a deep scan on it.
(The name of the device is "Not Set")

Can anyone help me?
grafik

Try with --address-type random

Thank you, this fixed it.
Would you like to explain me why that made a difference?

The process to establish a connection can be different, depending on the type it first has to cryptographically derive the actual address. See: https://novelbits.io/bluetooth-address-privacy-ble/
In your case it's the random static type (0xFF is ..11).

I could probably make this parameter optional though, because the ble stack already knows which one it is when it detects the device/advertisement.

Thank you for the answer