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: fix problem with observe responses without observe option #344

Merged
merged 4 commits into from
Apr 24, 2022

Conversation

JKRhb
Copy link
Member

@JKRhb JKRhb commented Apr 24, 2022

With this PR I think I finally found the fix for iobroker-community-adapters/ioBroker.philips-air#15: As it turned out, a type check that I had introduced to make sure that only numeric Observe values are passed to the initialization of ObserveStream objects caused them to not be initialized at all.

This PR fixes the issue and illustrates that observing now finally works again with an example using the Eclipse Californium test server.

@coveralls
Copy link

coveralls commented Apr 24, 2022

Pull Request Test Coverage Report for Build 2214006857

  • 8 of 8 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 91.749%

Totals Coverage Status
Change from base Build 2213842359: 0.09%
Covered Lines: 2821
Relevant Lines: 3033

💛 - Coveralls

@JKRhb JKRhb force-pushed the observe-initialization branch from 6f2a541 to 200afa4 Compare April 24, 2022 00:34
@JKRhb JKRhb changed the title fix: fix problem with initial observe request fix: fix problem with observe responses without observe option Apr 24, 2022
@Apollon77 Apollon77 merged commit 6ecb2b7 into coapjs:master Apr 24, 2022
@JKRhb JKRhb deleted the observe-initialization branch April 24, 2022 16:43
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.

3 participants