gclib examples  0
Example Projects for the Communications API for Galil controllers and PLCs

◆ ip_assigner()

GReturn ip_assigner ( char *  serial_num,
int  address 
)

Assigns controller an IP Adress given a serial number and a 1 byte address.

This function will listen on the network for controllers requesting an IP Address. If a detected controller matches the serial number provided by the user, a new IP Address will be assigned based on the first 3 bytes of the detected IP Address combined with the user defined 1 byte address.

Definition at line 22 of file ip_assigner.cpp.

References e(), and string_split().