Skip to content

Advice: Using example Client and connecting gamepad #1057

@nevsie

Description

@nevsie

Hi All,
I am still pretty fresh into Nimble and this library - so please forgive my ignorance.
Currently, I have an ESP32 CS Supermini up and running, scanning, connecting, and outputting gamepad data (characteristics). Great.

But I then hit a stumbling block - when the gamepad disconnects and I try to reconnect.
The script identifies there are clients in the list, matches it, gets disconnected client, and then fails to reconnect.
I have also noticed that when I try to reconnect, the serial dump of the advertised device has all zeros for the UUID

Any help / advice is really appreciated.
N

23:12:19.050 -> I NimBLEScan: Scan response from: 7a:52:7b:78:a5:3e
23:12:22.498 -> I NimBLEScan: New advertiser: 00:00:00:00:00:00
23:12:22.498 -> D NimBLEScanCallbacks: Discovered: Name: Q37XDV for Android, Address: 00:00:00:00:00:00, appearance: 963, serviceUUID: 0x1812
23:12:22.543 -> I NimBLEScan: Scan response from: 00:00:00:00:00:00
23:12:22.543 -> Suitable Advertised Device found: Name: Q37XDV for Android, Address: 00:00:00:00:00:00, appearance: 963, manufacturer data: 4f54415f424d37363901007500fb4419b64c0a333143, serviceUUID: 0x1812
23:12:22.543 -> Found Our Service
23:12:22.543 -> D NimBLEScan: >> stop()
23:12:22.543 -> D NimBLEScan: << stop()
23:12:22.543 -> Client List Size: 1
23:12:22.543 -> Client match in list.
23:12:22.543 -> Get Disconnected Client.
23:12:22.543 -> D NimBLEClient: >> connect(00:00:00:00:00:00)
23:12:22.543 -> E NimBLEClient: Invalid peer address; (NULL)
23:12:22.543 -> Failed to connect
23:12:22.543 -> Failed to connect, starting scan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions