mirror of https://github.com/meshcore-dev/MeshCore
Browse Source
DHCP is now the default for the Ethernet companion, addressing the need for DHCP in managed/enterprise networks. It is done PoE-safely: - deferred to loop() after the converter is latched (~6 s), so the blocking DHCP exchange can't collapse the supply at cold start; - bounded timeout (12 s lease / 4 s response) instead of the 60 s default; - falls back to the static IP if no DHCP server answers, so the node is always reachable and never reboot-loops; - Ethernet.maintain() renews the lease. Use a DHCP reservation on the router for a stable address. Add -D ETH_STATIC_ONLY to opt out of DHCP and use the static IP directly. Tested on RAK4631 + RAK13800 + RAK19018: repeated PoE-only cold starts come up reliably with the DHCP-assigned address. Co-Authored-By: Claude Opus 4.8 <[email protected]>pull/2679/head
1 changed files with 27 additions and 2 deletions
Loading…
Reference in new issue