BleDispatcher.BleNotificationListener

interface BleNotificationListener

Interface used to receive BLE notifications.

See enableNotification(UUID,UUID,BleNotificationListener).

Methods

onNotify

void onNotify(Kallisto kallisto, UUID serviceUuid, UUID characteristicUuid, byte[] values)

Called when there is a new notification of the characteristic enabled with enableNotification(UUID,UUID,BleNotificationListener) call.

Parameters
  • kallisto – The Kallisto device that generated this event.

  • serviceUuid – The UUID of the service that contains the characteristic that generated this event.

  • characteristicUuid – The UUID of the characteristic that generated this event.

  • values – A byte buffer with the new values of the characteristics.

Throws
  • BleException – If something went wrong with the BLE communication.