Module 类
定义
public class Module extends BaseDevice
- 继承
继承成员
BaseDevice.BaseDevice(String deviceId, SymmetricKey symmetricKey)
BaseDevice.BaseDevice(String deviceId, AuthenticationType authenticationType)
BaseDevice.cloudToDeviceMessageCount
BaseDevice.connectionState
BaseDevice.connectionStateUpdatedTime
BaseDevice.deviceId
BaseDevice.eTag
BaseDevice.generationId
BaseDevice.getAuthenticationType()
BaseDevice.getCloudToDeviceMessageCount()
BaseDevice.getConnectionState()
BaseDevice.getConnectionStateUpdatedTime()
BaseDevice.getDeviceId()
BaseDevice.geteTag()
BaseDevice.getGenerationId()
BaseDevice.getLastActivityTime()
BaseDevice.getPrimaryKey()
BaseDevice.getPrimaryThumbprint()
BaseDevice.getSecondaryKey()
BaseDevice.getSecondaryThumbprint()
BaseDevice.getSymmetricKey()
BaseDevice.lastActivityTime
BaseDevice.OFFSET_TIME_DEFAULT
BaseDevice.setForceUpdate(Boolean forceUpdate)
BaseDevice.setSymmetricKey(SymmetricKey symmetricKey)
BaseDevice.setThumbprint(String primaryThumbprint, String secondaryThumbprint)
BaseDevice.setThumbprintFinal(String primaryThumbprint, String secondaryThumbprint)
BaseDevice.UTC_TIME_DEFAULT
构造函数
Module(String deviceId, String moduleId, SymmetricKey symmetricKey) |
Create an Module instance using the given module name |
字段
id |
Module name A case-sensitive string (up to 128 char long) of ASCII 7-bit alphanumeric chars + {'-', ':', '.', '+', '', '_', '#', '*', '?', '!', '(', ')', ',', '=', '@', ';', '$', '''}. |
managedBy |
Specifies the module's managed by owner |
方法
createFromId(String deviceId, String moduleId, SymmetricKey symmetricKey) |
Static create function Creates module object using the given name. If input symmetric key are null then they will be auto generated. |
createModule(String deviceId, String moduleId, AuthenticationType authenticationType) |
Static create function Creates device object using the given name that will use a Certificate Authority signed certificate for authentication. |
getId() |
Getter for module name |
getManagedBy() |
Getter for module's managed by owner |