bool SetPortState(int, bool, string)
Toggles the on/off or high/low state of a port/pin.
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
index |
int The port/pin index. |
on |
bool Turn port on / set pin high. |
deviceName |
(Optional) string The name of the device, as specified in the Config Tool. Default: null. |
Return
true, upon success.