https://github.com/ibebbs/cmqtt
Cross-platform .NET Core tool for interacting with MQTT. Inspire by Curl.
https://github.com/ibebbs/cmqtt
cross-platform curl mqtt
Last synced: 10 months ago
JSON representation
Cross-platform .NET Core tool for interacting with MQTT. Inspire by Curl.
- Host: GitHub
- URL: https://github.com/ibebbs/cmqtt
- Owner: ibebbs
- License: gpl-3.0
- Created: 2019-09-21T12:33:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-11T11:24:23.000Z (over 6 years ago)
- Last Synced: 2025-03-27T22:43:11.980Z (10 months ago)
- Topics: cross-platform, curl, mqtt
- Language: C#
- Homepage:
- Size: 31.3 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cmqtt
Cross-platform .net Core tool for interacting with MQTT. Inspire by Curl.
# Usage
Usage information available by using the '--help' option. Example help text shown below:
## Basic Help
```
dotnet .\Cmqtt.dll --help
Cmqtt 1.0.0
publish Publish a message to a broker on a specific topic
subscribe Subscribe to messages from a broker on a specific topic
help Display more information on a specific command.
version Display version information.
```
## Publish Help
```
dotnet .\Cmqtt.dll publish --help
Cmqtt 1.0.0
-t, --topic Required. Topic on which to publish a message.
-m, --message The message to publish to the broker.
-f, --file The file containing the message to publish to the broker.
-e, --encoding (Default: Utf8) The encoding to use for the message
-b, --broker Required. Address of the broker to publish to.
-p, --port (Default: 1883) Port on which to connect of the broker.
-c, --client (Default: cmqtt) Client id to use when connecting to the broker.
--User The username to use to authenticate with the broker
--Password The password to use to authenticate with the broker
--help Display this help screen.
--version Display version information.
```
## Subscribe Help
```
dotnet .\Cmqtt.dll subscribe --help
Cmqtt 1.0.0
-t, --topic Required. Topic on which to subscribe for messages.
-e, --encoding (Default: Utf8) The encoding to use for the message
-b, --broker Required. Address of the broker to publish to.
-p, --port (Default: 1883) Port on which to connect of the broker.
-c, --client (Default: cmqtt) Client id to use when connecting to the broker.
--User The username to use to authenticate with the broker
--Password The password to use to authenticate with the broker
--help Display this help screen.
--version Display version information.
```