Skip to content

Expose stream controllers for connection and packets#3

Open
eelco2k wants to merge 21 commits into
M4dhav:mainfrom
eelco2k:main
Open

Expose stream controllers for connection and packets#3
eelco2k wants to merge 21 commits into
M4dhav:mainfrom
eelco2k:main

Conversation

@eelco2k

@eelco2k eelco2k commented Oct 27, 2025

Copy link
Copy Markdown

No description provided.

flightcom and others added 20 commits January 2, 2026 14:42
…LE permissions

requestMtu(512) is Android-only in flutter_blue_plus — throws on iOS.
iOS negotiates MTU automatically, so the call is unnecessary.

bluetoothConnect and bluetoothScan permissions are Android 12+ only.
Requesting them on iOS always returns denied.
Write-without-response can silently drop packets. The official Python
library uses response=True for all ToRadio writes. Also use a non-zero
wantConfigId so the firmware sends back a matching configCompleteId.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
BLE connection is established with services and notifications ready.
Config read errors during handshake shouldn't block packet sending.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Allows sending raw data on PRIVATE_APP port which bypasses firmware
position rate limiting and merging. Used for phone GPS relay.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The isConnected/isConfigured flags are unreliable after reconnect.
Just check if the BLE characteristic exists and try to write.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Throwing 'Not connected' caused the caller's error handler to trigger
reconnect, destroying the working connection. Return silently instead
and let the BLE write surface actual disconnect errors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Removed emoji-tagged debug prints that would ship to production.
Config and send paths now use _logger consistently.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
for compatibility downgrade to 3.7 protobuf package
features from seancmt fork
revert back to version 4.2.0 for this branch. the V3.1.0 protobufs are found in the `protobufs3` branch.
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.

3 participants