ZTBleConnection

class ZTBleConnection(device: ZTDevice, rxBleConnection: RxBleConnection)

ZTBleConnection

Author

Alexandre Lemoult <a.lemoult@zhortech.com>

Constructors

ZTBleConnection
Link copied to clipboard
fun ZTBleConnection(device: ZTDevice, rxBleConnection: RxBleConnection)

Types

ConnectionPriority
Link copied to clipboard
enum ConnectionPriority : Enum<ZTBleConnection.ConnectionPriority>

Functions

discoverServices
Link copied to clipboard
fun discoverServices(): Single<ZTBleDeviceServices>
getDevice
Link copied to clipboard
fun getDevice(): ZTDevice
monitorCharacteristicIndicate
Link copied to clipboard
fun monitorCharacteristicIndicate(characteristic: ZTCharacteristic): Observable<Observable<ByteArray>>
monitorCharacteristicNotify
Link copied to clipboard
fun monitorCharacteristicNotify(characteristic: ZTCharacteristic): Observable<Observable<ByteArray>>
readCharacteristic
Link copied to clipboard
fun readCharacteristic(characteristic: ZTCharacteristic): Single<ByteArray>
requestConnectionPriority
Link copied to clipboard
fun requestConnectionPriority(connectionPriority: ZTBleConnection.ConnectionPriority): Completable
writeCharacteristic
Link copied to clipboard
fun writeCharacteristic(characteristic: ZTCharacteristic, data: ByteArray): Single<ByteArray>

Properties

services
Link copied to clipboard
var services: ZTBleDeviceServices? = null