Skip to main content

IBaseDevice

interface IBaseDevice

Description: Basic device interface class

method getKeyManager

fun getKeyManager(): IKeyManager

Description: Get the Key management class

Input parameters: None。

Output parameters: the Key management class

Related parameters: IKeyManager。

method getStatesCacheManager

fun getStatesCacheManager(): IStatesCacheManager

Description: Listening state cache management class

Input parameters: None。

Output parameters: State cache management class listener

Related parameters: IStatesCacheManager。

method deviceNumber

fun deviceNumber(): Int

Description: Device number, used to distinguish between multi-device connections

Input parameters: None。

Output parameters: Device number, used to distinguish between multi-device connections

Related parameters: None。

method type

fun type(): Type

Description: Equipment type

Input parameters: None。

Output parameters: Equipment type

Related parameters: Type。

method getConfig

fun getConfig(): Config

Description: protocol configuration

Input parameters: None。

Output parameters: protocol configuration

Related parameters: Config。

method getProtoProtocol

fun getProtoProtocol(): ProtoProtocol

Description: Proto protocol

Input parameters: None。

Output parameters: Proto protocol

Related parameters: ProtoProtocol。