gclib 2.0.9
Communications API for Galil controllers and PLCs
 
Loading...
Searching...
No Matches

◆ GAssign()

void GAssign ( string  ip,
string  mac 
)
inline

Assigns IP address over the Ethernet to a controller at a given MAC address.

Parameters
ipThe ip address to assign. The hardware should not yet have an IP address.
macThe MAC address of the hardware.

Wrapper around gclib GAssign(), http://www.galil.com/sw/pub/all/doc/gclib/html/gclibo_8h.html#acc996b7c22cfed8e5573d096ef1ab759

Exceptions
System.ExceptionWill throw an exception if anything other than G_NO_ERROR is received from gclib.

Definition at line 224 of file gclib.cs.

References G_NO_ERROR, GError(), and vector().

Referenced by Examples.IP_Assigner().