Class BleGapClient

    • 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<<Error class: unknown class><UUID, String>> observeGapInfo(Boolean checkConnection) Produces: onNext, when a new gap info has been read <BR></BR> onCompleted, after all available gap info has been read ok <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
      • observeGapInfo

         final Flow<<Error class: unknown class><UUID, String>> observeGapInfo(Boolean checkConnection)

        Produces: onNext, when a new gap info has been read <BR></BR> onCompleted, after all available gap info has been read ok <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