btleplug
btleplug copied to clipboard
Rust Cross-Platform Host-Side Bluetooth LE Access Library
See #399
**Describe the bug** From sentry: ``` NullPointerException: Attempt to invoke virtual method 'void android.bluetooth.le.BluetoothLeScanner.stopScan(android.bluetooth.le.ScanCallback)' on a null object reference ``` I suspect that the unchecked results in https://github.com/deviceplug/btleplug/blob/master/src/droidplug/java/src/main/java/com/nonpolynomial/btleplug/android/impl/Adapter.java#L39 are to...
**Describe the bug** Function `Central::peripherals` on android doesn't return any peripherals **Expected behavior** To work just as on linux, and return devices near by **Actual behavior** Function `Central::peripherals` on android...
**Describe the bug** "Got descriptors for a characteristic we don't know" about while connecting to an iRobot Create 3. **Expected behavior** able to connect to peripheral **Actual behavior** the connect...
```rust pub fn to_peripheral_id(id: &str) -> PeripheralId { #[cfg(any(target_os = "macos", target_os = "ios"))] return PeripheralId::from(Uuid::parse_str(id_str).unwrap()); #[cfg(target_os = "windows")] PeripheralId::from(BDAddr::from_str_delim(&id_str).unwrap()) #[cfg(target_os = "android")] return PeripheralId(BDAddr::from_str_delim(&id_str).unwrap()); #[cfg(target_os = "linux")] return PeripheralId::from(bluez_async::DeviceId::new(id));...
The application experiences issues with connecting to and disconnecting from Bluetooth devices on Windows. While device discovery works as expected, attempting to establish or terminate a Bluetooth connection does not...
I have just done a lovely 4 hour debugging session to find a panic. Because java + rust + tokio sucks ass, backtraces were invalid. Anyhow, I do not know...
On android, since `JNIEnv` is used, one must ensure that calls to `btleplug` which themselves use `JNIEnv` to call into the JVM stay on the same thread ([or at least...
This PR will include a method to retrieve the negotiated MTU size on each platform. Info grabbed from: https://github.com/deviceplug/btleplug/issues/246 **Windows** - [GattSession.MaxPduSize](https://learn.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.genericattributeprofile.gattsession.maxpdusize?view=winrt-22621) Negotiation happens on user's behalf, and a GattSession.MaxPduSizeChanged...
**BOND** how to create ble bond in ios/macos platform