ZTDevice

class ZTDevice(bleDevice: RxBleDevice, macAddresses: MacAddresses, serial: String, code: ZTCode)

ZTDevice

Author

Alexandre Lemoult <a.lemoult@zhortech.com>

Constructors

ZTDevice
Link copied to clipboard
fun ZTDevice(bleDevice: RxBleDevice, macAddresses: MacAddresses, serial: String, code: ZTCode)

Functions

addDisposable
Link copied to clipboard
fun addDisposable(disposable: Disposable)
disconnect
Link copied to clipboard
fun disconnect()
getAddress
Link copied to clipboard
fun getAddress(): String
getConnectionState
Link copied to clipboard
fun getConnectionState(): ZTConnectionState
getName
Link copied to clipboard
fun getName(): String
observeConnectingStateChanges
Link copied to clipboard
fun observeConnectingStateChanges(): Observable<ZTConnectionState>
observeConnectionError
Link copied to clipboard
fun observeConnectionError(): Observable<Throwable>

Properties

bleDevice
Link copied to clipboard
val bleDevice: RxBleDevice
code
Link copied to clipboard
val code: ZTCode
macAddresses
Link copied to clipboard
val macAddresses: MacAddresses
serial
Link copied to clipboard
val serial: String