Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
SetValue ( int i, DeviceCommand cmd ) : void |
Sets switch value
|
public OnCommand ( DeviceCommand cmd ) : bool | ||
cmd | DeviceCommand | Input command |
return | bool |
public SendNotification ( int value ) : bool | ||
value | int | switch value |
return | bool |
public Switch ( DeviceEngine dev, |
||
dev | DeviceEngine | Parent device |
pin | Device pin number | |
Code | string | Equipment code |
InitialState | bool | Initial state |
return | System |