-
-
Couldn't load subscription status.
- Fork 35
Add available_ble_devices() method #72
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
base: main
Are you sure you want to change the base?
Conversation
Also refactored BleHandler: * added available_peripherals method, factoring out logic out of BleHandler::find_ble_radio. * added comments
It's better than a tuple
|
Need to make public the BleDevice struct, in the stream module like BleId? |
Made it public, also added |
Also add a few derives.
|
Could I request |
|
Done |
|
BleId implemented from_name(). WOuld be useful here too, I think not available? |
|
Doesn't this work? if let Some(name) = ble_device.name {
let ble_id = BleId::from_name(&name);
}We can add more convenience functions, but right now I want to focus on core functionality. I can add more in followup PRs. |
|
The implemented |
Summary
The
available_ble_devices()is requested by many users to detect BLE devices running Meshtastic.Also refactored
BleHandler:BleHandler::find_ble_radio.Related Issues
#32
Checklist