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?
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.
It works fine.
Can you tell me how to change the delay for connect()? For now, it will take around 30s to get failed, that is too long...