Repository navigation
ble://: use a paired link - #48
Merged
Merged
Conversation
A board started with bledev pairing refuses an unpaired computer's first write (ATT 0x05). The transport now pairs just works when that happens, which covers a board without a display, and says how to pair once when the board wants a passkey (python -m bledev.bleak pair NAME, or Windows Settings). The password is optional: a board that pairing unlocks opens on the first line without asking. A link that falls at the first write on a computer paired with the board is explained as a lost bond, with the unpair step.
A write without response to a characteristic the board protects is dropped silently, so the unpaired case never surfaced. When just works isn't enough (the board wants a passkey), unpair again rather than leave a pairing that only gets in the way, and say how to pair once.
bdbarnett
added a commit
that referenced
this pull request
Sep 25, 2026
…eading Nine version sites now say 0.0.8 and check_versions.py passes. The curated Unreleased notes become the v0.0.8 section, with a line for BLE pairing (#48), and the bot's commit list is dropped.
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.
ble://over a paired link, for boards running bledev withpairing=(PyDevices/pydevices#88). Stacked on #47 (ble-transport); merge that first.python -m bledev.bleak pair NAMEor Windows Settings.Checked on the LCD-7 from Windows: with the bond from a passkey pairing and no password set,
execand a 20 KBput/get, byte for byte. Against a just-works board with a password: mpftp paired by itself and logged in; a wrong password was still refused. Against a passkey board with the computer unpaired: the message, and Windows held no pairing afterwards. Unit tests cover each path, and disabling the pairing call turns three of them red.