TPL

object TPL : BleDeviceHandler

Types

Link copied to clipboard
annotation class TPLEvents

Inherited properties

Link copied to clipboard
val mBleEventCallBacks: MutableSet<IBleEventCallBack>?

Functions

Link copied to clipboard
open override fun getAccessoriesName(): String

Same Bluetooth accessories can't appear in Scan operation when we use only the Service UUID, so we add scan by Accessories name to handle these case.

Link copied to clipboard
open override fun getCharacteristicsUUID(): UUID
Link copied to clipboard
fun getConfigStateUUID(): UUID
Link copied to clipboard
open override fun getServiceUUID(): UUID

Abstract method, must be implement to return the service UUID for your device, otherwise your device does not work.Note that : getServiceUUID is used to scan for available device , else we consider device not supported).

Link copied to clipboard
open override fun onCharacteristicUpdated(characteristic: BluetoothGattCharacteristic)

Callback triggered as a result of a remote characteristic notification.

Link copied to clipboard
fun writeChannelName(channel: String)
Link copied to clipboard
open override fun writeCharacteristic(characteristicValue: Int)

Inherited functions

Link copied to clipboard
open fun registerButtonActions(@Nullable callbacks: MutableSet<IBleEventCallBack>?)
Link copied to clipboard
open fun unRegisterButtonActions(@Nullable callback: MutableSet<IBleEventCallBack>?)