Class BleGapClient
-
- All Implemented Interfaces:
public final class BleGapClient extends BleGattBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBleGapClient.Companion
-
Field Summary
Fields Modifier and Type Field Description public final BleGattTxInterfacetxInterfacepublic BooleanisPrimaryServiceprivate final BooleanisEncryptionRequiredprivate final BooleanisServiceDiscoveredpublic final static BleGapClient.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description BleGapClient(BleGattTxInterface txInterface)
-
Method Summary
Modifier and Type Method Description Unitreset()UnitprocessServiceData(UUID characteristic, ByteArray data, Integer status, Boolean notifying)Callback for GATT service characteristic data processing UnitprocessServiceDataWritten(UUID characteristic, Integer status)StringtoString()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
-
-
Constructor Detail
-
BleGapClient
BleGapClient(BleGattTxInterface txInterface)
-
-
Method Detail
-
processServiceData
Unit processServiceData(UUID characteristic, ByteArray data, Integer status, Boolean notifying)
Callback for GATT service characteristic data processing
- Parameters:
characteristic- characteristic UUIDdata- data in byte arraystatus- status code of processed datanotifying- if true data is notification data from GATT service
-
processServiceDataWritten
Unit processServiceDataWritten(UUID characteristic, Integer status)
-
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
-
-
-
-