MockServerAPI
class MockServerAPI(mockEngine: MockEngine, serverDevice: MockServerDevice, bufferSize: Int) : GattServerAPI
A class for communication with MockEngine. It allows for sending responses to connected client devices.
Parameters
bufferSize
A buffer size for events.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun notifyCharacteristicChanged(device: ClientDevice, characteristic: IBluetoothGattCharacteristic, confirm: Boolean, value: DataByteArray)
Link copied to clipboard
Link copied to clipboard
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?)