-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clientGET-observe constantly sending updates #59
Comments
I'm not sure I really get what you want. If you run clientGET-observer against an external server, it will output a line every time the server sends a new status, independently of whether it changed or not. If you are seeing needless updates here, you could of course make the client display only changes, but really the server should send updates only when either the state changed or considerable time has passed. Is this issue about the server sending too many updates (is it an aiocoap server / what does it do?), or would you expect the |
Sorry what I meant was is there any way that I can get it to only send a message to the observer when something is PUT on the server topic being observed. almost how MQTT works when it get notifications for the topics it is subscribed to. |
The server should currently send a notification exactly when you call a resource's It also shows that with CoAP observe, you must not rely on there always being a resource state change when you obtain a new value. CoAP observation provides eventual consistency, not an event messaging system. (As this is already more of a question issue,) What problem do you actually want to solve? |
It seems the question is answered, feel free to reopen if there is more. |
Is there any way to code the observe program to only send updates on change. so If I am sending some data to the server every 10 mins or so then I only want it to update then. currently I have edited clientGet-observe.py program so that it gets the temperature topic but it receives and loops through this data constantly even when there has been no update sent. is there anyway to change this. thanks
The text was updated successfully, but these errors were encountered: