Peripheral
Android-specific implementation of a peripheral.
This class extends Peripheral and adds Android-specific methods.
Parameters
scope The coroutine scope.
The executor that provides methods to interact with the peripheral.
Inheritors
Properties
MAC address of the peripheral as String, alias for Peripheral.identifier.
The current connection parameters as StateFlow.
Returns whether the system has bond information associated with this peripheral.
The Bluetooth device type of the remote device.
Functions
Aborts the reliable write transaction started using beginReliableWrite.
Initiates a reliable write transaction.
Initiates bonding with the peripheral.
Executes all write with response operations queued since beginReliableWrite was called.
The maximum amount of data, in bytes, that can be send to a characteristic in a single write operation.
Refreshes the cached GATT database associated with the peripheral and starts new service discovery automatically.
Removes the bond information associated with the peripheral.
Requests new connection parameters.
Requests the highest possible MTU (517).
Set the preferred connection PHY.