메소드 | 설명 | |
---|---|---|
OnCommand ( DeviceCommand cmd ) : bool |
Sets switch value according to input command
|
|
Register ( ) : bool |
Registers the switch
|
|
SendNotification ( int value ) : bool |
Sends switch change notification
|
|
Switch ( DeviceEngine dev, |
Constructs a switch by given parameters
|
메소드 | 설명 | |
---|---|---|
SetValue ( int i, DeviceCommand cmd ) : void |
Sets switch value
|
public OnCommand ( DeviceCommand cmd ) : bool | ||
cmd | DeviceCommand | Input command |
리턴 | bool |
public SendNotification ( int value ) : bool | ||
value | int | switch value |
리턴 | bool |
public Switch ( DeviceEngine dev, |
||
dev | DeviceEngine | Parent device |
pin | Device pin number | |
Code | string | Equipment code |
InitialState | bool | Initial state |
리턴 | System |