3 releases (breaking)

0.3.0 Jun 6, 2024
0.2.0 Apr 10, 2023
0.1.0 Apr 10, 2023

#426 in Command line utilities

Download history 4/week @ 2024-03-09 6/week @ 2024-03-16 28/week @ 2024-03-30 8/week @ 2024-04-06 147/week @ 2024-06-01 14/week @ 2024-06-08 2/week @ 2024-06-15 1/week @ 2024-06-22

164 downloads per month

MIT license

14KB
197 lines

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

Dependencies

~20–33MB
~546K SLoC