lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Start DHCP from application thread not tcpip thread


From: Pomeroy, Marty
Subject: Re: [lwip-users] Start DHCP from application thread not tcpip thread
Date: Wed, 13 Jun 2012 13:32:03 -0400



> I call tcpip_callback(dhcp_start(netif_default),0); from 
> my application thread.

That syntax is going to call dhcp_start() from your application thread,
and pass the return value to tcpip_callback: not what you want.

Try netifapi_netif_common( &netif_default, NULL, dhcp_start);

Not sure if you have tried this: don't use the static IP address at all
(use 0.0.0.0), and see if DHCP works right.

Marty





reply via email to

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