Skip to content
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

Add BLE support using DuplexStream #33

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lukipuki
Copy link
Collaborator

@lukipuki lukipuki commented Jan 21, 2025

Summary
Added BLE support using tokio's DuplexStream.

The newly introduced build_ble_stream accepts a name or MAC address of a BLE device.

I've merged existing functions of BleHandler:
- filter_map and notifications
- is_disconnected_event and adapter_events

Related Issues
#32

Proposed Changes
Added build_ble_stream function, it's similar to build_serial_stream and build_tcp_stream.

Will add an example next.

Checklist

  • Tests pass locally
  • Documentation updated if needed

Merge functions of BleHandler:
- `filter_map` and `notifications`
- `is_disconnected_event` and `adapter_events`
This is enabled by adding the BleId enum. It has one variant for name
and one for MAC address.
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