Package live. ditto. transports. ble
Types
Abstract sealed class representing a type of BLE operation
Abstract sealed class representing a type of BLE operation
Read the value of a characteristic represented by characteristicUuid
Write payload as the value of a characteristic represented by characteristicUuid
Connect to device and perform service discovery
Read the value of a descriptor represented by descriptorUuid
Write payload as the value of a descriptor represented by descriptorUuid
Disable notifications/indications on a characteristic represented by characteristicUuid
Disconnect from device and release all connection resources
Disconnect from device and release all connection resources
Owns the BluetoothPlatform and references to the Rust-based BLE Client and Server transports. Previously these were long-lived instances but sometimes the Android BLE stack gums up and stops reporting events properly until the app is restarted. The nuclear solution of dropping and recreating the BluetoothPlatform resolves this situation. At the expense of background support, this manager class will track disabled/enabled/background/foreground events and fully stop or start the platform accordingly.
Enable notifications/indications on a characteristic represented by characteristicUuid
Request for an MTU of mtu
Functions
Convenience extension function that returns true if this BluetoothGattDescriptor is a Client Characteristic Configuration Descriptor.
Android identifies remote devices by MAC address, whereas iOS uses a UUID. The cross-platform code uses 16-byte values to handle full-size UUIDs directly. On Android we expand a MAC address into 16 bytes.
Convert a ByteArray representing a MAC address into that MAC address string.