Skip to content

[CIT-122] MQTT Client#7

Closed
didier-wenzek wants to merge 83 commits intothin-edge:mainfrom
didier-wenzek:feature/CIT-122/MQTT-Client
Closed

[CIT-122] MQTT Client#7
didier-wenzek wants to merge 83 commits intothin-edge:mainfrom
didier-wenzek:feature/CIT-122/MQTT-Client

Conversation

@didier-wenzek
Copy link
Copy Markdown
Contributor

A library to build MQTT client.

  • It uses underneath the crate rumqttc adding an abstraction to the EventLoop object.
  • A broadcast channel is used to send the messages from the event loop to subscribers.

Two examples are provided:

  • examples/temperature_publisher.rs
  • examples/simple_mapper.rs

Pradeep K J and others added 3 commits November 30, 2020 19:21

let commands = mqtt.subscribe(c8y_cmd.filter()).await?;
let c8y_errors = mqtt.subscribe(c8y_err.filter()).await?;
let errors = mqtt.subscribe_errors();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is subscribe_errors() a blocking call?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is not a blocking call. Just a wrapper around a channel clone.

@ChrisGreenaway
Copy link
Copy Markdown
Contributor

I think I'd be happy to approve this PR once the extra files and build are sorted out.

@didier-wenzek
Copy link
Copy Markdown
Contributor Author

This PR have been override by thin-edge/pull/11
because of a messed up log history.

@didier-wenzek didier-wenzek deleted the feature/CIT-122/MQTT-Client branch January 5, 2021 11:35
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.

5 participants