forked from cloudevents/sdk-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Subhobrata Dey <[email protected]>
- Loading branch information
Showing
5 changed files
with
231 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# CloudEvents SDK Rust - paho-mqtt [![Crates badge]][crates.io] [![Docs badge]][docs.rs] | ||
|
||
Integration of [CloudEvents SDK](https://github.com/cloudevents/sdk-rust/) with [paho-mqtt](https://www.eclipse.org/paho/). | ||
|
||
Look at [CloudEvents SDK README](https://github.com/cloudevents/sdk-rust/) for more info. | ||
|
||
## Development & Contributing | ||
|
||
If you're interested in contributing to sdk-rust, look at [Contributing documentation](../CONTRIBUTING.md) | ||
|
||
## Community | ||
|
||
## Sample usage | ||
|
||
- Check the example [paho-mqtt-example](../example-projects/paho-mqtt-example) | ||
|
||
### MQTT V3 | ||
- Start the MQTT V3 Consumer | ||
|
||
``` | ||
run --package <package-name> --bin <binary-name> -- --mode consumerV3 --broker tcp://localhost:1883 --topic test | ||
``` | ||
|
||
- Start the MQTT V3 Producer | ||
|
||
``` | ||
run --package <package-name> --bin <binary-name> -- --broker tcp://localhost:1883 --topic test --mode producerV3 | ||
``` | ||
|
||
### MQTT V5 | ||
- Start the MQTT V5 Consumer | ||
|
||
``` | ||
run --package <package-name> --bin <binary-name> -- --mode consumerV5 --broker tcp://localhost:1883 --topic test | ||
``` | ||
|
||
- Start the MQTT V5 Producer | ||
|
||
``` | ||
run --package <package-name> --bin <binary-name> -- --broker tcp://localhost:1883 --topic test --mode producerV5 | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.