connectToDevice

fun connectToDevice(device: ZTDevice): Single<ZTDevice>

Connect to provided ZTDevice.

Will terminate current connection if present.

Return

Single that will emit ZTDevice in success

Parameters

device

the ZTDevice