Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Reconnecting to BLE sensor fails #68

@google-admin

Description

@google-admin

Basically, it appears that sometimes unregisterClient doesn't always actually unregister, and then when trying to connect again to the same address, service tries to deliver the callbacks to the old client rather than the new one.

01-19 14:44:20.156 D/BluetoothGatt: connect() - device: E0:75:43:BD:63:51, auto: false
01-19 14:44:20.156 D/BluetoothGatt: registerApp()
01-19 14:44:20.157 D/BluetoothGatt: registerApp() - UUID=9a7e9dec-4acb-401f-8383-fed60a45792c
01-19 14:44:20.158 D/BtGatt.GattService: registerClient() - UUID=9a7e9dec-4acb-401f-8383-fed60a45792c
01-19 14:44:20.158 D/BtGatt.GattService: onClientRegistered() - UUID=9a7e9dec-4acb-401f-8383-fed60a45792c, clientIf=2
01-19 14:44:20.159 D/BluetoothGatt: onClientRegistered() - status=0 clientIf=2
01-19 14:44:20.159 D/BtGatt.GattService: clientConnect() - address=E0:75:43:BD:63:51, isDirect=true
01-19 14:44:20.159 I/SynthesisEngine: JSyn already stopped.
01-19 14:44:20.160 D/BtGatt.GattService: onConnected() - clientIf=1, connId=1, address=E0:75:43:BD:63:51
01-19 14:44:20.160 E/BtGatt.ContextMap: Context not found for ID 1

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