Skip to content

Fix parameter to BLEDevice::updatePeerDevice #4133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 2, 2020

Conversation

buxtronix
Copy link
Contributor

::addPeerDevice and ::removePeerDevice are called with m_appId, so should ::updatePeerDevice as all use the same parameter for the underlying map's key.

@chegewara
Copy link
Contributor

chegewara commented Oct 19, 2020

Hi,
thanks for pointing it. Actually the idea was to update peer device map to use gatt if after connecting, which is not available when peer device is created, so it was bug in remove peer device. But now i see your fix may be better, not sure now.

Thanks

EDIT only issue may be when appId will rollout and oldest peer device is still connected, that why i thought to use gattId instead

@me-no-dev me-no-dev merged commit 9f7ff00 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.

3 participants