|
From: | Paul Webber |
Subject: | Re: [lwip-users] DHCP callback was removed - Correct way to obtain new address? |
Date: | Fri, 29 Aug 2014 17:51:47 +0000 |
Chris, I am using the TCP RAW. After starting DHCP I wait for the IP by using: While(main_netif.dchp->state != DHCP_BOUND). After the state changes to DHCP_BOUND the
ip is in the pcb (main_netif.ip_addr). You can periodically check to see if the ip changes. I also include in the while statement a timer in case there is a DHCP problem. Paul From: lwip-users-bounces+address@hidden
[mailto:lwip-users-bounces+address@hidden On Behalf Of
Chris Maier Hi all,
I am just porting my application from version 1.3.2 to the latest 1.4.2. and I was wondering why my application does not get called
back from the stack when the DHCP As I found out the callback was removed. My application has to know the address for displaying purposes, so do I have to poll for
a new address? What is the proper way to obtain a new address?
Regards
Chris
---------------------------------------------------------------- |
[Prev in Thread] | Current Thread | [Next in Thread] |