BaseDevice 构造函数

定义

重载

BaseDevice(String deviceId, AuthenticationType authenticationType)

Create an BaseDevice instance using the given device name with the given authenticationType

BaseDevice(String deviceId, SymmetricKey symmetricKey)

Create an BaseDevice instance using the given device name

BaseDevice(String deviceId, AuthenticationType authenticationType)

Create an BaseDevice instance using the given device name with the given authenticationType

protected BaseDevice(String deviceId, AuthenticationType authenticationType)

参数

deviceId
String

Name of the device (used as device id)

authenticationType
AuthenticationType

- The type of authentication used by this device.

BaseDevice(String deviceId, SymmetricKey symmetricKey)

Create an BaseDevice instance using the given device name

protected BaseDevice(String deviceId, SymmetricKey symmetricKey)

参数

deviceId
String

Name of the device (used as device id)

symmetricKey
SymmetricKey

- Device key. If parameter is null, then the key will be auto generated.

例外

IllegalArgumentException

if deviceId is null

适用于