awslabs / aws-c-mqtt

C99 implementation of the MQTT 3.1.1 specification.
Apache License 2.0
93 stars 30 forks source link

Adapter subscribe unsubscribe #303

Closed bretambrose closed 1 year ago

bretambrose commented 1 year ago

Adds implementations and basic tests for subscribe, subscribe_multi, publish, and unsubscribe to the 3-to-5 adapter.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 88.59% and project coverage change: +0.53 :tada:

Comparison is base (9a2c01b) 81.54% compared to head (0833189) 82.08%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## AdapterOperationalState #303 +/- ## =========================================================== + Coverage 81.54% 82.08% +0.53% =========================================================== Files 19 19 Lines 8134 8390 +256 =========================================================== + Hits 6633 6887 +254 - Misses 1501 1503 +2 ``` | [Impacted Files](https://app.codecov.io/gh/awslabs/aws-c-mqtt/pull/303?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs) | Coverage Δ | | |---|---|---| | [source/v5/mqtt3\_to\_mqtt5\_adapter.c](https://app.codecov.io/gh/awslabs/aws-c-mqtt/pull/303?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs#diff-c291cmNlL3Y1L21xdHQzX3RvX21xdHQ1X2FkYXB0ZXIuYw==) | `78.06% <88.59%> (+6.92%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/awslabs/aws-c-mqtt/pull/303/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=awslabs)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.