Skip to content

Conversation

@lukipuki
Copy link
Collaborator

It handles the low-level meshtastic BLE protocol, including the 3 characteristics used to read from and write to the radio. It also converts BLE errors into internal errors.

The high-level protocol remains to be added, especially the sequence mentioned in https://meshtastic.org/docs/development/device/client-api

@ajmcquilkin
Copy link
Collaborator

Would the pattern of the BLE connection match the pattern for using the other two connection methods? My ideal world would be that the pattern of all three match, even if we have to change the other two a bit

@lukipuki
Copy link
Collaborator Author

lukipuki commented Jan 29, 2024

I'm not sure I understand your concern. BleHandler is an internal utility, its equivalent for e.g. TCP is hidden deep inside tokio or the Linux kernel, so there is no equivalent pattern inside this library.

The final user-facing API will be the same though, here's a snippet from my WIP code returning a StreamHandle, just like the other two connection types: lukipuki@bf62d6f#diff-56b28e06d43da250d6266d02c8008187338880c638671064e312eab6aef1e2e8R270-R273

But that's not part of this PR, it will come in later ones.

It handles the meshtastic BLE protocol, including the 3 characteristics
used to read from and write to the radio.
@lukipuki lukipuki merged commit 25456cf into meshtastic:main Oct 10, 2024
@lukipuki lukipuki deleted the ble-handler branch November 24, 2024 19:01
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.

2 participants