Class BlePfcClient
-
- All Implemented Interfaces:
public final class BlePfcClient extends BleGattBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBlePfcClient.PfcMessagepublic final classBlePfcClient.PfcResponsepublic final classBlePfcClient.PfcFeaturepublic classBlePfcClient.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static ByteSUCCESSpublic final static ByteERROR_NOT_SUPPORTEDpublic final static ByteERROR_INVALID_PARAMETERpublic final static ByteERROR_OPERATION_FAILEDpublic final static ByteERROR_NOT_ALLOWEDpublic final static ByteRESPONSE_CODEprivate final LinkedBlockingQueue<Pair<ByteArray, Integer>>pfcCpInputQueuepublic final BleGattTxInterfacetxInterfacepublic BooleanisPrimaryServiceprivate final BooleanisEncryptionRequiredprivate final BooleanisServiceDiscoveredpublic final static BlePfcClient.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description BlePfcClient(BleGattTxInterface txInterface)
-
Method Summary
Modifier and Type Method Description final LinkedBlockingQueue<Pair<ByteArray, Integer>>getPfcCpInputQueue()Unitreset()UnitprocessServiceData(UUID characteristic, ByteArray data, Integer status, Boolean notifying)Callback for GATT service characteristic data processing UnitprocessServiceDataWritten(UUID characteristic, Integer status)StringtoString()final BlePfcClient.PfcResponsesendControlPointCommand(BlePfcClient.PfcMessage command, Integer param)final BlePfcClient.PfcResponsesendControlPointCommand(BlePfcClient.PfcMessage command, ByteArray params)Send a control point command to the device. UnitclientReady(Boolean checkConnection)final BlePfcClient.PfcFeaturereadFeature()Read features from PFC service. -
Methods inherited from class com.polar.androidcommunications.api.ble.model.gatt.BleGattBase
addCharacteristicNotification, authenticationCompleted, authenticationFailed, 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
-
BlePfcClient
BlePfcClient(BleGattTxInterface txInterface)
-
-
Method Detail
-
getPfcCpInputQueue
final LinkedBlockingQueue<Pair<ByteArray, Integer>> getPfcCpInputQueue()
-
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)
-
sendControlPointCommand
final BlePfcClient.PfcResponse sendControlPointCommand(BlePfcClient.PfcMessage command, Integer param)
-
sendControlPointCommand
final BlePfcClient.PfcResponse sendControlPointCommand(BlePfcClient.PfcMessage command, ByteArray params)
Send a control point command to the device.
- Parameters:
command- see PfcMessageparams- optional parameters, depends on command- Returns:
PfcResponse on success
-
clientReady
Unit clientReady(Boolean checkConnection)
-
readFeature
final BlePfcClient.PfcFeature readFeature()
Read features from PFC service.
- Returns:
PfcFeature on success
-
-
-
-