Class BleDisClient

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit reset()
      Unit processServiceData(UUID characteristic, ByteArray data, Integer status, Boolean notifying) Callback for GATT service characteristic data processing
      Unit processServiceDataWritten(UUID characteristic, Integer status)
      String toString()
      final Flow<Pair<UUID, String>> observeDisInfo(Boolean checkConnection) Produces: onNext, when a dis data has been read <BR></BR> onCompleted, after all available dis info has been read <BR></BR> onError, if client is not initially connected or ble disconnect's <BR></BR>
      final Flow<DisInfo> observeDisInfoWithKeysAsStrings(Boolean checkConnection) Produces: onNext, when a DisInfo has been read <BR></BR> onCompleted, after all available DisInfo has been read <BR></BR> onError, if client is not initially connected or ble disconnect's <BR></BR>
      • Methods inherited from class com.polar.androidcommunications.api.ble.model.gatt.BleGattBase

        addCharacteristicNotification, authenticationCompleted, authenticationFailed, clientReady, containsCharacteristic, containsCharacteristicRead, containsNotifyCharacteristic, descriptorWritten, getAvailableCharacteristics, getNotificationAtomicInteger, isAutomatic, isAutomaticRead, isEncryptionRequired, isServiceDiscovered, processCharacteristicDiscovered, processServiceDataWrittenWithResponse, removeCharacteristicNotification, serviceBelongsToClient, setMtuSize, setServiceDiscovered, waitNotificationEnabled, waitServiceDiscovered
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • processServiceData

         Unit processServiceData(UUID characteristic, ByteArray data, Integer status, Boolean notifying)

        Callback for GATT service characteristic data processing

        Parameters:
        characteristic - characteristic UUID
        data - data in byte array
        status - status code of processed data
        notifying - if true data is notification data from GATT service
      • observeDisInfo

         final Flow<Pair<UUID, String>> observeDisInfo(Boolean checkConnection)

        Produces: onNext, when a dis data has been read <BR></BR> onCompleted, after all available dis info has been read <BR></BR> onError, if client is not initially connected or ble disconnect's <BR></BR>

        Parameters:
        checkConnection - , optionally check connection on subscribe <BR></BR>
        Returns:

        Flow stream <BR></BR>

      • observeDisInfoWithKeysAsStrings

         final Flow<DisInfo> observeDisInfoWithKeysAsStrings(Boolean checkConnection)

        Produces: onNext, when a DisInfo has been read <BR></BR> onCompleted, after all available DisInfo has been read <BR></BR> onError, if client is not initially connected or ble disconnect's <BR></BR>

        Parameters:
        checkConnection - , optionally check connection on subscribe <BR></BR>
        Returns:

        Flow stream emitting DisInfo <BR></BR>