GattServerAPI
Interface around native Android API. For real BLE connections it uses BluetoothGattServer, whereas for mock device it utilizes MockEngine.
Properties
Flow which emits BLE events. For real BLE connections it collects events from BluetoothGattServerCallback under the hood, for mock device it gets events from MockEngine.
Functions
Disconnects an established connection, or cancels a connection attempt currently in progress.
Initiate a connection to a Bluetooth GATT capable device.
Send a notification or indication that a local characteristic has been updated.
Internal function for propagating events to event shared flow. For internal usage only.
Reads the current transmitter PHY and receiver PHY of the connection.
Set the preferred connection PHY for this app. Please note that this is just a recommendation, whether the PHY change will happen depends on other applications preferences, local and remote controller capabilities. Controller can override these settings.
Send a response to a read or write request to a remote device.