-
Notifications
You must be signed in to change notification settings - Fork 47
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
Observe in client is not working #25
Comments
I found our version (slightly early than the tip) also was not working and have added a hack to get us over the line. See below. After the handler is invoked, we check to ensure it is not observable before deleting the interaction: coap_main.c:620 (Just after calling Handler!)
|
Was this ever resolved? I seem to be having the same issue still today. |
No not to my knowledge. |
Description
The client is requesting correctly with the observe option and getting an ACK from the server.
But after the first CON from the server my callback (sendRequestCB) is called and the interaction is getting deleted. (@see: coap_main.c:handleClientInteraction)
In return the client sends a RST instead of an ACK because he cannot find the previous deleted interaction. (@see: coap_main.c:CoAP_HandleIncomingPacket)
The server removes the subscriber because he received a RST (Cancel Observation).
Client code
The text was updated successfully, but these errors were encountered: