lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] DHCP, switch to static IP if no answer


From: Simon Goldschmidt
Subject: Re: [lwip-users] DHCP, switch to static IP if no answer
Date: Fri, 24 Jun 2011 22:40:13 +0200

"Bill Auerbach" <address@hidden> wrote:

I used dhcp_start and then checked in a loop netif_is_up for a connection for 5 seconds.

Might be a bit late, but I do have to note that this can't work when using lwIP correctly, as it does not obey the lwIP threading requirements. You would have to use an lwIP timer or a callback to orctly implement the 5 second timeout instead of a loop. Or you would have to handle RX packets in that loop...

Simon

reply via email to

[Prev in Thread] Current Thread [Next in Thread]