Class BleDisClient
-
- All Implemented Interfaces:
public final class BleDisClient extends BleGattBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBleDisClient.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringSYSTEM_ID_HEXpublic final BleGattTxInterfacetxInterfacepublic BooleanisPrimaryServiceprivate final BooleanisEncryptionRequiredprivate final BooleanisServiceDiscoveredpublic final static BleDisClient.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description BleDisClient(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<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
-
-
Constructor Detail
-
BleDisClient
BleDisClient(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)
-
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>
-
-
-
-