samples: http_client: wait for network device to settle
Workaround to allow networking device to come up and configure an
IP address.
Change-Id: I5475ab2956553712e324b7ffa494aa489a18e3ee
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/samples/net/http_client/src/main.c b/samples/net/http_client/src/main.c
index 5207284..0241323 100644
--- a/samples/net/http_client/src/main.c
+++ b/samples/net/http_client/src/main.c
@@ -27,6 +27,8 @@
int i = MAX_ITERATIONS;
int rc;
+ printk("Wait for network device to settle...\n");
+ k_sleep(K_SECONDS(6));
http_init(&http_ctx);
http_ctx.tcp_ctx.receive_cb = http_receive_cb;
http_ctx.tcp_ctx.timeout = HTTP_NETWORK_TIMEOUT;