Skip to content

Conversation

buxtronix
Copy link
Contributor

  • Remove device from Peer list if connection fails.

  • Only call onConnect callback if connection was successful.

  • Only call onDisconnect callback if the connection was previously connected (ESP_GATTC_DISCONNECT_EVT is fired on a unsuccessful connection attempt also).

Resolves a number of issues with phantom events and callbacks being fired.

@me-no-dev me-no-dev merged commit 76cd2e2 into espressif:master Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants