DNETcK IP address set by software

Post Reply
Posts: 3
Joined: Mon Mar 16, 2015 12:46 pm

DNETcK IP address set by software

Post by Laci04 » Wed Jun 08, 2016 11:41 pm


I used the Ethernet server with DNETcK library. The server remotely set some parameters by GET requests. It would be necessary to change the IP address.

1. Receiving IP modification GET request. For example: GET /setip=
2. The program parsing and saving received data in EEPROM
3. Automatically restart program
4. Read stored IP address from EEPROM and begin IP server new configure.

DNETcK::begin(ipServer); This is OK!
but... IPv4 ipServer = {192,168,1,5}; is static parameter.
How is it possible to set the IP address in void setup() function?

Something like that would be a good solution:
DNETcK::begin(EEPROM.read(0x00), EEPROM.read(0x01), EEPROM.read(0x02), EEPROM.read(0x03));


Many thanks!

Post Reply