• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Alan-Jowett / sonde / 23363555300
82%

Build:
DEFAULT BRANCH: main
Ran 20 Mar 2026 09:39PM UTC
Jobs 1
Files 72
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Mar 2026 09:35PM UTC coverage: 82.752% (+0.01%) from 82.739%
23363555300

push

github

web-flow
fix(modem): add BLE pairing timeout, pin ATT MTU, document auto-accept (#393)

* fix(modem): add BLE pairing timeout, pin ATT MTU, document auto-accept

- Add 30-second BLE pairing timeout (MD-0414 AC#4): store
  \connection_start\ timestamp on connect, check elapsed time each
  poll cycle via \check_pairing_timeout()\, force-disconnect if
  exceeded.
- Add \CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU=512\ to
  \sdkconfig.defaults.esp32s3\ to explicitly pin ATT MTU >= 247
  (MD-0402).
- Add \TODO(#382)\ comment documenting that Numeric Comparison is
  auto-accepted due to NimBLE callback constraints; proper fix
  requires gateway-modem serial coordination on a dedicated task.

Closes #382

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: gate pairing timeout on pairing_pending state (MD-0414)

The BLE pairing timeout was enforced unconditionally from connection
time, which could disconnect legitimate post-authenticated sessions
after 30s. Per MD-0414 AC#4, the 30s timeout applies only while
waiting for BLE_PAIRING_CONFIRM_REPLY.

Changes:
- Start the timeout clock when pairing_pending becomes true (on
  passkey display), not at connection time.
- Gate check_pairing_timeout() on pairing_pending so authenticated
  sessions are never affected.
- Clear pairing_pending and connection_start on timeout to prevent
  repeated disconnect attempts and warning spam.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: address PR #393 round 2 review comments

- Start pairing timeout on connect (not on_confirm_pin) so clients that
  never initiate pairing cannot hold the connection slot indefinitely.
  Clear connection_start once authentication completes.
- Clear deferred_connected on timeout and ignore late pairing_confirm_reply
  calls when pairing is no longer pending.
- Rewrite BLE_PAIRING_TIMEOUT doc comment for clarity.
- Add check_pairing_timeout counter to MockBle and a test verifying
  Bridge::poll() calls it onc... (continued)

15 of 15 new or added lines in 1 file covered. (100.0%)

16859 of 20373 relevant lines covered (82.75%)

49.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23363555300.1 20 Mar 2026 09:39PM UTC 72
82.75
GitHub Action Run
Source Files on build 23363555300
  • Tree
  • List 72
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23363555300
  • d1faf45d on github
  • Prev Build on main (#23362894195)
  • Next Build on main (#23363812847)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc