Pryme BTPTT
This class represnet the implementation of : - BT-PTT-Z(Mini) - BT-PTT-ZU-STRAP
Functions
Link copied to clipboard
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
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.
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Abstract method, must be implement to return the service UUID for your device, otherwise your device does not work.
Link copied to clipboard
Called to check if given uuid is for PrymeBTPTT
Link copied to clipboard
open fun onCharacteristicUpdated(@NonNull characteristic: BluetoothGattCharacteristic)
Content copied to clipboard
Callback triggered as a result of a remote characteristic notification.
Link copied to clipboard
Inherited functions
Link copied to clipboard
open fun registerButtonActions(@Nullable callbacks: Set<IBleEventCallBack>)
Content copied to clipboard
Register the specified listener to be notified by any Device event.
Link copied to clipboard
open fun unRegisterButtonActions(@Nullable callback: Set<IBleEventCallBack>)
Content copied to clipboard
Unregister the specified listener to not be notified by any Device event.