Class and Functions


Class

To use this extension board, use the ExpansionRelayOutput class of the PHPoC Expansion library.

Member Functions

Available member functions of the ExpansionRelayOutput class are as follows:

Member Function Description
int getPID(void) get the product's ID
char *getName(void) get the product's name
ExpansionRelayOutput(int sid, int port) create an instance of a specific output port
void on(void) turn a output port ON
void off(void) turn a output port OFF
bool isOn(void) return true when a output port is ON
bool isOff(void) return true when a output port is OFF
void setDelay(int ms) give delay for output(millisecond)