mqtt-client-cli

Crates.iomqtt-client-cli
lib.rsmqtt-client-cli
version0.3.0
sourcesrc
created_at2023-04-10 06:37:27.046334
updated_at2024-06-06 07:30:11.668999
descriptionmqtt-client-cli - A CLI MQTT Client
homepage
repositoryhttps://github.com/ming900518/mqtt-client-cli
max_upload_size
id834882
size44,694
Ming Chang (ming900518)

documentation

README

MQTT Client

A CLI tool for fetching MQTT stream data.

  • Output can be printed out directly, or directly written into a text file with the -o option.

  • Includes an HTTP Server (http://0.0.0.0:12345/) for fetching all available data with JSON.

Installation

  1. Install Rust with rustup (Skip this step if already installed.)

  2. Install dependencies (CMake and build related tools) from the package manager:

    • macOS: brew install cmake
    • Debian-based distro: sudo apt install build-essential cmake
  3. Use cargo command to install this tool.

    cargo install mqtt-client-cli
    

Usage

mqtt-client-cli - A CLI MQTT Client

Usage: mqtt-client-cli [OPTIONS] --host <HOST URL>

Options:
  -H, --host <HOST URL>      Host. Required
  -u, --username <USERNAME>  Username. Optional
  -p, --password <PASSWORD>  Password. Optional
  -t, --topic <TOPIC>        Topic. Optional (Default = "#")
  -o, --output <OUTPUT>      Output Path. All data from the MQTT stream will be stored into the specified file
  -h, --help                 Print help
  -V, --version              Print version
Commit count: 12

cargo fmt