samples: net: cellular_modem: increase the post-restart sleep time

A higher delay helps in getting the first post-restart echo
packet to be successful.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
This commit is contained in:
Tomi Fontanilles 2024-03-18 16:14:28 +02:00 committed by Fabio Baltieri
parent cf7d166fc1
commit 8ca15cedc2

View File

@ -376,7 +376,7 @@ int main(void)
printk("L4 connected\n");
/* Wait a bit to avoid (unsuccessfully) trying to send the first echo packet too quickly. */
k_sleep(K_SECONDS(1));
k_sleep(K_SECONDS(5));
ret = sample_echo_packet(&sample_test_dns_addrinfo.ai_addr,
sample_test_dns_addrinfo.ai_addrlen, port);