setDeviceInfo

abstract fun setDeviceInfo(deviceId: String?, name: String?)

Sets the device information in order to enable connection

If the device is connected and a new device info is set, it will disconnect the previous device and will rtu to connect the new device

Parameters

deviceId

the id or address of the device, or null to clear

name

the device name (optional), or null to clear