interface DeviceBluetoothServiceDelegate
Delegate for DeviceBluetoothService.
Author
NIMMSTA Team
Copyright
NIMMSTA GmbH & IBPG 2020
License
NIMMSTA GmbH
didConnect |
open fun didConnect(): Unit |
didDisconnect |
open fun didDisconnect(: Reason): Unit |
onCharacteristicChanged |
open fun onCharacteristicChanged(gatt: BluetoothGatt, characteristic: BluetoothGattCharacteristic): Unit |
onConnectionStateChange |
open fun onConnectionStateChange(gatt: BluetoothGatt, status: Int, newState: Int): Unit |
onError |
open fun onError(throwable: Throwable): Unit |
UARTBTService |
The UART BT Service uses the DeviceBluetoothService and defined UART Characteristics to provide an UART-Like Interface to communicate with a device. Basically it needs 4 Characteristics: class UARTBTService : DeviceBluetoothServiceDelegate, UARTServiceInterface |