Hi,
I am using MCUXpresso V11.5 with SDK2.11.0 for FRDM-K66F...
I tried https client and works fine. When I do more testing, I found my application struck @lwip_recv_from function if my network disconnected. I checked LWIP function, I am using blocking call from LWIP.
1. Can anyone tell me how to use no-blocking lwip_recv in stead of blocking call?
2. I am using "connect()" and it will take about 20s to see failed if there is no network cable connected. Can I change the timeout for 2s because the real connection is less than 1s?
Thanks,
Christie
Hi @a8Chcx
It is possible to use non-blocking lwip_recv.
You need to enable LWIP_SO_RCVTIMEO in lwipopts.h
Please refer to below link for more details.
https://lwip.fandom.com/wiki/Netconn_receive_timeout
Regards
Daniel