Add onPassKeyEntry to NimBLEServerCallbacks and onPassKeyDisplay to NimBLEClientCallbacks - #1115
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix server/client callback completeness in NimBLE
Add onPassKeyEntry to NimBLEServerCallbacks and onPassKeyDisplay to NimBLEClientCallbacks
Mar 17, 2026
h2zero
requested changes
Mar 17, 2026
h2zero
left a comment
Owner
There was a problem hiding this comment.
Don't change the examples, these are unlikely to get much use.
Contributor
Author
Done — reverted both example files in 7e6e131. |
h2zero
marked this pull request as ready for review
March 17, 2026 12:56
…imBLEClientCallbacks Co-authored-by: h2zero <32826625+h2zero@users.noreply.github.com>
h2zero
force-pushed
the
copilot/fix-nimble-callback-parity
branch
from
March 17, 2026 12:59
7e6e131 to
d3658f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The BLE pairing IO capability matrix requires both display and entry callbacks on both roles.
NimBLEServerCallbackslackedonPassKeyEntry(needed when the server has Keyboard-Only IO capability and the client displays the passkey), andNimBLEClientCallbackslackedonPassKeyDisplay(needed when the client has display capability and the server must input).Changes
NimBLEServerCallbacks— addsonPassKeyEntry(NimBLEConnInfo&):handleGapEventnow handlesBLE_SM_IOACT_INPUT, calling this callback123456viaNimBLEDevice::injectPassKeyNimBLEClientCallbacks— addsonPassKeyDisplay(NimBLEConnInfo&) -> uint32_t:handleGapEventnow handlesBLE_SM_IOACT_DISP, calling this callback and injecting the returned passkey viable_sm_inject_ioNimBLEDevice::getSecurityPasskey()onPassKeyDisplayhandlerOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.