|
From: | bob |
Subject: | [lwip-users] Best practice for DHCP/Static IP config |
Date: | Tue, 22 Jan 2019 01:58:58 -0700 |
Could I get a recommendation for run-time configurable DHCP/Static IP address. Sorry if this has been asked 100 times before. Just wondering what the people who actually use lwip do… From monitoring the mailing list, I understand no graceful shutdown… So I am ok with a startup variable and reset the hardware to make the setting take effect. #define is not really what I am looking for. Is this the right way?
netif_set_default() if (dhcp) dhcp_start(); else netif_set_up(); A pointer to an example that does this, or 5 lines of pseudo code would be great! (SAME54, lwip 2.0.3, free RTOS 10.0.0) Thanks Simon, Sylvain, Steve, Patrick, and others who are providing such great help to this list! Most of my questions are answered by just watching the emails on this list. Bob |
[Prev in Thread] | Current Thread | [Next in Thread] |