Skip to content

Commit 89fc393

Browse files
committed
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 <[email protected]>
1 parent 705d21a commit 89fc393

File tree

1 file changed

+2
-0
lines changed
  • samples/net/http_client/src

1 file changed

+2
-0
lines changed

samples/net/http_client/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ void main(void)
2727
int i = MAX_ITERATIONS;
2828
int rc;
2929

30+
printk("Wait for network device to settle...\n");
31+
k_sleep(K_SECONDS(6));
3032
http_init(&http_ctx);
3133
http_ctx.tcp_ctx.receive_cb = http_receive_cb;
3234
http_ctx.tcp_ctx.timeout = HTTP_NETWORK_TIMEOUT;

0 commit comments

Comments
 (0)