CeoTronics

class CeoTronics : BleDeviceHandler

This class represent the Aina responder implementation

Functions

Link copied to clipboard
open 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 fun getCharacteristicsUUID(): UUID
    Abstract method, must be implement to return the characteristic UUID
    for your device button, otherwise your device does not work.Note that : characteristicUUID is used to check if button is supported( after discovering GATT service we check if
    there is a supported button, else we consider device not supported.
Link copied to clipboard
open fun getInstance(): CeoTronics
Link copied to clipboard
open fun getServiceUUID(): UUID
Abstract method, must be implement to return the service UUID for your device, otherwise your device does not work.
Link copied to clipboard
open fun isCeotronicsConnected(@NonNull uuid: UUID): Boolean
Called to check if given uuid is for CeoTronics
Link copied to clipboard
open fun onCharacteristicUpdated(@NonNull characteristic: BluetoothGattCharacteristic)
Callback triggered as a result of a remote characteristic notification.
Link copied to clipboard
open fun writeCharacteristic(characteristicValue: Int)

Inherited functions

Link copied to clipboard
open fun registerButtonActions(@Nullable callbacks: Set<IBleEventCallBack>)
Register the specified listener to be notified by any Device event.
Link copied to clipboard
open fun unRegisterButtonActions(@Nullable callback: Set<IBleEventCallBack>)
Unregister the specified listener to not be notified by any Device event.