bool SetPortState(int portBitIndex, bool isEnabled, int pacDevInd = 0, string deviceName = null)

Enabled or disables an individual port on the controller. Trust Level Required: High

Parameters

Name Description
portBitIndex Specifies the ID of the port to toggle.
isEnabled The new state for the specified port. 0 = Disabled, 1 = Enabled
pacDevInd The device index to request an operation on.
deviceName The name of the device.

Return

Returns true on success.