Peripheral
Class representing a Bluetooth LE peripheral.
Types
Properties
Whether the GATT services were discovered, and are available in services.
Returns true if the peripheral is currently connected.
Returns true if the peripheral is disconnected.
The current state of the peripheral as a state flow.
Functions
Suspends until the peripheral is disconnected.
Returns the current ATT MTU.
Disconnects the client from the peripheral.
The maximum amount of data, in bytes, that can be sent to a characteristic in a single write operation.
Registers a profile implementation that runs when the specified GATT services are discovered.
Registers a profile implementation that runs when the specified GATT service is discovered.
Executes the given block when the peripheral is connected.
Returns a flow emitting RemoteServices events.