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

Fix: first observe response not being handled #195

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

jorgesanfz
Copy link
Contributor

PR related to issue #193

To prevent the check from blocking the function until after the first response is received, I created a method within the CoapObserveClientRelation called checkObserve that checks for the observe flag upon receiving the first response. This approach eliminates the need for await, ensuring that the CoapObserveClientRelation object already has our onData method when the first response is received.

@shamblett shamblett merged commit 318f5d6 into shamblett:master Jun 9, 2024
2 of 3 checks passed
@shamblett
Copy link
Owner

OK thanks, seems to work OK, merged, will be in the next release.

Note don't worry about the PR failing on windows, this is known and being worked on.

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.

2 participants