Skip to content

docs: add Bumble transport documentation#110

Open
ethan-mark-osu wants to merge 1 commit into
intercreate:mainfrom
ethan-mark-osu:docs/109-bumble-transport
Open

docs: add Bumble transport documentation#110
ethan-mark-osu wants to merge 1 commit into
intercreate:mainfrom
ethan-mark-osu:docs/109-bumble-transport

Conversation

@ethan-mark-osu
Copy link
Copy Markdown

Resolves #109.

  • Add docs/transport/bumble.md
  • Add Bumble (BLE) entry to mkdocs.yaml nav

Resolves intercreate#109.

- Add docs/transport/bumble.md: install guide, nrfutil flashing
  instructions for nRF52840 DK, smpbumble CLI reference, scanning,
  pairing (interactive PIN and programmatic OOB serial read),
  and mkdocstrings API directives for all bumble submodules
- Add Bumble (BLE) entry to mkdocs.yaml nav
Copy link
Copy Markdown
Collaborator

@JPHutchins JPHutchins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you! Please move all of this to the source code instead of this markdown, like the other docs. This is so that all of the docs are available to all people and agents, e.g. from their editor, without needing to use the website.

Comment thread docs/transport/bumble.md
Comment on lines +35 to +46
```python
# save the firmware bytes to a file
from smpclient.transport.firmware.hci import firmware

with open("hci_firmware.hex", "wb") as f:
f.write(firmware)
```

```bash
# flash via JLink
nrfutil device program --firmware hci_firmware.hex --traits jlink
```
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! This can be simplified to grab the hci firmware path from its CLI via subshell:

...--firmware=$(python -m zephyr_4_4_0_hci_usb_nrf52840dk_default)...

Because each zephyr HCI package has a __main__ that defaults to outputting the path.

Comment thread docs/transport/bumble.md

```python
import asyncio
import serial_asyncio
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not cross platform, do not suggest it. I think that the programmatic example with the input callback is enough to get anyone started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for the Bumble-backed BLE transport and exposes it in the MkDocs navigation, addressing the request to document Bumble usage and the optional HCI firmware extra.

Changes:

  • Adds a new Bumble transport guide with install, firmware, CLI, scanning, pairing, and API reference sections.
  • Adds the Bumble transport page to the documentation navigation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
mkdocs.yaml Adds the Bumble BLE transport page to the docs navigation.
docs/transport/bumble.md Introduces user-facing Bumble transport documentation and API references.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/transport/bumble.md
Comment on lines +160 to +161
Bond keys are stored via the `keystore` strategy — see `smpclient.transport.bumble.keystore` for
the options (`Tempfile`, `Local`, `Custom`, `Memory`).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally best avoid naming things in docs unless they are under test to avoid maintenance burden of the SSOT violation.

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.

Add Bumble documentation

3 participants