add wait_config_up to examples
This commit is contained in:
@ -101,6 +101,9 @@ async fn main(spawner: Spawner) -> ! {
|
||||
// Launch network task
|
||||
unwrap!(spawner.spawn(net_task(&stack)));
|
||||
|
||||
// Ensure DHCP configuration is up before trying connect
|
||||
stack.wait_config_up().await;
|
||||
|
||||
info!("Network task initialized");
|
||||
|
||||
// Then we can use it!
|
||||
|
Reference in New Issue
Block a user