9 #ifndef MODBUSIP_ENC28J60_H 10 #define MODBUSIP_ENC28J60_H 12 #define MODBUSIP_PORT 502 13 #define MODBUSIP_MAXFRAME 200 14 #define ENC28J60_CS 10 15 //#define TCP_KEEP_ALIVE 48 void config(uint8_t *mac, IPAddress ip);
59 void config(uint8_t *mac, IPAddress ip, IPAddress dns);
72 void config(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway);
86 void config(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet);
95 #endif //MODBUSIP_ENC28J60_H Modbus over TCP/IP network Class for Arduino Ethernet shield.
ModbusIP()
Default constructor.
void config(uint8_t *mac)
Connect a ModbusIP object to a network.
void task()
Task that performs all operations on MODBUS.