This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Martin,
I have not tried APIs directly in timer/interrupt context. Since most of the APIs are blocking in your case, I'm not sure if the platform allows you to do that. Can you please try with 'SOCKOPT_RECV_NONBLOCK' flag set to '1' in setsockopt?
Thanks & Regards,
Raghavendra
Thank you for starting a conversation so fast Raghavendra!
Hi Martin,
Which version of the SDK are you using? I'm using 1.11. Hence, I mentioned "SOCKOPT_RECV_NONBLOCK", which should be equivalent to "SOCKOPT_NONBLOCK". However, I would suggest you to get the latest SDK.
The code looks alright, as long as you don't have problem working from timer context. By flag '1' I mean SOCK_ON.
Thanks & Regards,
Raghavendra