Electronics > Projects, Designs, and Technical Stuff
W5500 Ethernet controller - DHCP Lease Time
(1/1)
honeybadger:
Hi,
I am building a simple Ethernet sensor with Arduino and W5500 module.
A few temperature sensors... HTTP POST... simple.
The thing is it has to be as reliable as possible. Because you would need a ladder to restart it.
The Arduino has its own watchdog but I am not sure how to handle the Ethernet part.
My concerns are:
- What happens when the DHCP lease time of the IP address expires? Will the W5500 handle asking for the new IP address by itself or I have to somehow force it?
- What happens when both Arduino and W5500 are running, the router is running, IP is assigned - then the Ethernet cable is disconnected and after some time is connected again. Neither the Arduino neither the router was rebooted. Will be new IP assigned automatically and everything will continue like nothing happened? I am asking because "Ethernet.begin(mac);" is called only once at the startup.
I will test it all when the module arrives but I want to make sure I know the basics first.
Thanks!
EDIT: Will "Ethernet.maintain()" solve both concerns?
Navigation
[0] Message Index
Go to full version