Skip to content
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

Resolving Issue #25 Observe in client is not working #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

srikumaresan
Copy link

Resolving issue related to CoAP client not working with observe

Resolving issue related to CoAP client not working with observe
@srikumaresan srikumaresan reopened this Jan 10, 2023
@srikumaresan srikumaresan changed the title Update coap_main.c Resolving Issue #25 Observe in client is not working Jan 10, 2023
@srikumaresan
Copy link
Author

Issue 25 relates to the client not being able to use the Observe functionality. This is the result of each interaction being deleted once a single response is received due to the following state machine in the client:
state_machine

If instead, the client can return to the COAP_STATE_WAITING_RESPONSE after getting a response, and requeues the interaction, the client can continue to observe a resource.

Please note, issue 25 comments suggest a similar solution. However, in the if condition of the solution, the observe value is checked to be >0, but on registering the value is equal to 0 so it does not resolve the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant