Skip to content

Connect in a block, with busy timeouts and max durations - #25

Merged
MarkParker5 merged 2 commits into
developfrom
feature/ble-api-review
Nov 13, 2026
Merged

MarkParker5 merged 2 commits into
developfrom
feature/ble-api-review

Conversation

@MarkParker5

Copy link
Copy Markdown
Member
  • connect() and lease.connect() are blocks that disconnect on exit; open_connection() is the direct option.
  • Everything that waits takes busy_timeout; connections end after max_duration (600 s default, None explicitly for no limit), leases after max_duration (120 s, required).
  • connect waits for a leased radio up to busy_timeout instead of failing at once.
  • A need is made optional by calling it: BLE_ROUTER(is_required=False).

Tested: ruff, ty, full suite.

@MarkParker5
MarkParker5 merged commit 494cd98 into develop Nov 13, 2026
5 checks passed
@MarkParker5
MarkParker5 deleted the feature/ble-api-review branch November 13, 2026 05:39
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.

1 participant