-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux BLE module #539
Draft
MathJud
wants to merge
38
commits into
main
Choose a base branch
from
linux_ble
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Linux BLE module #539
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on Android 12 and higher the following permission is needed: android.permission.BLUETOOTH_CONNECT
catch permission request result & send startResult
I have read the CLA Document and I hereby sign the CLA
The `blemodule` and `android/libqaul` have been moved into the qaul_ui folder.
* chore(ble): init rust ble module * build(ble-rs): add prost and bytes * chore: recompile proto * feat(log): init logging * feat(log): set up ble logger * feat(rpc): init rpc channels * feat(rpc): set up channels * fix(proto): add local copy of qaul.sys.ble * feat: run tokio select loop * refactor(rpc): use async traits for easier testing * refactor(rpc): remove unused rpcerrors * refactor: run main loop in own module * build(bluer): import bluer features * feat(ble): add BLE UUIDs * style: remove unused imports * feat(ble): define BleManager trait * feat(ble): advertise services * feat(ble): add handles for main and msg chara * refactor(ble): rename trait to QaulBleManager * refactor(uuid): rename to main UUID * build(ble): add futures * feat(ble): add services * feat(ble_module): scan * feat(ble): filter devices by blocklist * feat(ble): add close method * refactor(ble): qaul ble trait to fit ble sys msgs * refactor(rpc): give publiuc access to proto mod * refactor(rpc loop): listen to sys msgs * feat(loop): forward sys msgs to ble impl * refactor(naming): improve naming * feat(ble): get device info * feat(start_ble): return when ble already started * feat(ble): advertise * feat(ble_utils): pretty print address * refactor(ble): remove redundant close method * feat(ble): break ble loop with mpsc * feat(ble): connect to device * feat(ble): set up notification and send device found * feat(ble): report chara writes * refactor(streams): WIP * fix(ble): breaking stop stream * refactor(ble): use merged streams * feat(ble): implement direct send * feat(ble): implement stop * style: lint * refactor(ble): remove unused handle types
SYS communication from BLE connectivity module shall be called directly via callback from outside. Libqaul calls the BLE module directly. There is no libqaul -> BLE_module channel needed anymore. fixed qaul_id compile warning Removed unused function from API
This was referenced Mar 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds new Linux BLE module.