Author Topic: W5500 Ethernet controller - DHCP Lease Time  (Read 795 times)

0 Members and 1 Guest are viewing this topic.

Offline honeybadgerTopic starter

  • Contributor
  • Posts: 42
  • Country: cz
W5500 Ethernet controller - DHCP Lease Time
« on: December 05, 2019, 11:47:22 am »
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?
« Last Edit: December 05, 2019, 11:58:13 am by honeybadger »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf