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

feat!: rework discoverer APIs #167

Merged
merged 5 commits into from
May 29, 2024
Merged

feat!: rework discoverer APIs #167

merged 5 commits into from
May 29, 2024

Conversation

JKRhb
Copy link
Member

@JKRhb JKRhb commented May 28, 2024

This PR adds a (partially experimental) reimplementation of the different discovery methods that are currently available.

Some of the most important changes include the addition of a dedicated discovery method for MQTT (since it does not really fall into the other forms of “direct” discovery) and the introduction of mixins that can be used to indicate which discovery methods a ProtocolClient supports.

These and other aspects related to discovery could be discussed in one of the upcoming committer meetings, which is why I added this PR to the Committer Meeting project.

Lastly, during the implementation, I've noticed that there is a bug in the CoAP library that causes multicast requests to not be properly sent. This probably requires a fix in the upstream dependency.

@codecov-commenter
Copy link

codecov-commenter commented May 28, 2024

Codecov Report

Attention: Patch coverage is 5.26316% with 72 lines in your changes are missing coverage. Please review.

Project coverage is 66.20%. Comparing base (669333a) to head (77e39d6).

Files Patch % Lines
lib/src/core/implementation/thing_discovery.dart 0.00% 40 Missing ⚠️
lib/src/binding_coap/coap_client.dart 0.00% 13 Missing ⚠️
lib/src/binding_mqtt/mqtt_client.dart 0.00% 13 Missing ⚠️
lib/src/core/extensions/uri_extensions.dart 0.00% 2 Missing ⚠️
lib/src/core/implementation/servient.dart 66.66% 2 Missing ⚠️
lib/src/binding_http/http_client.dart 0.00% 1 Missing ⚠️
...lementation/discovery/discovery_configuration.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #167      +/-   ##
==========================================
- Coverage   66.66%   66.20%   -0.47%     
==========================================
  Files          77       78       +1     
  Lines        2439     2459      +20     
==========================================
+ Hits         1626     1628       +2     
- Misses        813      831      +18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JKRhb JKRhb force-pushed the discovery-interfaces branch from 2cb0222 to 0577643 Compare May 29, 2024 08:40
@JKRhb JKRhb force-pushed the discovery-interfaces branch 4 times, most recently from b4b9a32 to bcf6984 Compare May 29, 2024 19:18
@JKRhb JKRhb force-pushed the discovery-interfaces branch from 13fd5d5 to 3ef8646 Compare May 29, 2024 20:14
@JKRhb JKRhb force-pushed the discovery-interfaces branch from 3ef8646 to 44bb791 Compare May 29, 2024 20:26
@JKRhb JKRhb marked this pull request as ready for review May 29, 2024 20:33
@JKRhb JKRhb merged commit 5fd0f1c into main May 29, 2024
5 checks passed
@JKRhb JKRhb deleted the discovery-interfaces branch May 29, 2024 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants