This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

iot SDK coap random timeouts

Hi, I am using nrf5832 that is running a coap server example. I have modified it a little so it reads sensor data via i2c and returns the data using the coap callback. On the client end i am using a raspberry pi zero Wireless running the python coap client example, and likewise i have modified the python script little bit so data is read every two minutes, and posts the information to a cloud service. Randomly the python script timeouts waiting for coap data. Sometimes i see it working for at least 20 hours (600 samples) straight, and sometimes it timeouts after 10 minutes (5 samples). its quite random. Is there a way to increase timeout? I noticed the distance bewteen raspberry pi and nrf5238 makes a difference on how soon it timeouts. but right now i have it almost right next to raspberry pi and I still the python script timing out.

Thank You, naveen

Related