apidocs / com.nimmsta.core.android.bluetooth / DeviceBluetoothServiceDelegate

DeviceBluetoothServiceDelegate

interface DeviceBluetoothServiceDelegate

Delegate for DeviceBluetoothService.

Author
NIMMSTA Team

Copyright
NIMMSTA GmbH & IBPG 2020

License
NIMMSTA GmbH

Functions

didConnect

open fun didConnect(): Unit

didDisconnect

open fun didDisconnect(reason: 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

Inheritors

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