aiocoap COAP observer is not consistent

Viewed 20

I'm trying aiocoap on python to test the observer, I built observer.py, update.py, and server.py, so the observer client will observe localhost/alarm.

update.py makes PUT requests to change alarm every 3 seconds. observer gets notified when I do put request, 50% of the put requests are not notifying the observer, it actually waits for the next put request and then notify the observer twice.

so it is like

put "1" ==> observe "1"
put "2" ==> observe "2"
put "3" ==> Nothing
put "4" ==> observe "3" + observe "4"

I noticed that this problem does not appear if I do 1 update per 60s instead of 3s

EDIT: the problem is fixed when I started to send 3k bytes instead of 4bytes of data

0 Answers
Related