NativeServerBleAPI

A wrapper around BluetoothGattServer and BluetoothGattServerCallback. As an input it uses callbacks of BluetoothGattServerCallback and as an output calls to BluetoothGattServer.

Constructors

Link copied to clipboard
constructor(server: BluetoothGattServer, callback: ServerBleGattCallback)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val event: SharedFlow<ServerGattEvent>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun cancelConnection(device: ClientDevice)
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun connect(device: ClientDevice, autoConnect: Boolean)
Link copied to clipboard
open override fun notifyCharacteristicChanged(device: ClientDevice, characteristic: IBluetoothGattCharacteristic, confirm: Boolean, value: DataByteArray)
Link copied to clipboard
open override fun onEvent(event: ServerGattEvent)
Link copied to clipboard
open override fun readPhy(device: ClientDevice)
Link copied to clipboard
open override fun requestPhy(device: ClientDevice, txPhy: BleGattPhy, rxPhy: BleGattPhy, phyOption: PhyOption)
Link copied to clipboard
open override fun sendResponse(device: ClientDevice, requestId: Int, status: Int, offset: Int, value: DataByteArray?)