Skip to content

GattConnectionEvent::PairingComplete always returns bond as None #512

@th3-cr34t0r

Description

@th3-cr34t0r

I noticed that my device even the paired with the central, upon restart it would not connect automatically. I started debugging and noticed that GattConnectionEvent::PairingComplete always returns bond as None (meaning the bond information will not be stored in NvM). I tried with different central devices (windows pc, linux pc, android phone) but it would still be the same outcome. security_level returns encrypted tho.

Just to be clear, this was working as expected some time ago in my fw.

            GattConnectionEvent::PairingComplete {
                security_level,
                bond,
            } => {
                info!("[gatt] pairing complete: {:?}", security_level);
                if let Some(bond) = bond {
                    store_bonding_info(storage, &bond)
                        .await
                        .expect("[gatt] error storing bond info");
                    *bond_stored = true;
                    info!("[gatt] bond information stored");
                }
            }
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions