mqclient

command
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

README

Simple command-line MQTT client

Command-line args follow those for mosquitto_sub.

Commands:

  1. qos QOS: Set the QoS for subsequent operations.
  2. sub TOPIC: Subscribe to the given topic.
  3. unsub TOPIC: Unsubscribe from the given topic.
  4. retain (true|false): Set retain flag for subsequent pubs.
  5. pub TOPIC MSG: Publish MSG to the given TOPIC.
  6. sleep DURATION: Sleep for the given duration (e.g, '1s').

By default (controlled by -sh), input lines are shell-expanded: Each substring of the form <<SHELL_COMMAND>> is replaced by the stdout of executing SHELL_COMMAND.

Documentation

Overview

Package main is a little command-line MQTT client.

Commands:

qos QOS               Set the QoS for subsequent operations.
sub TOPIC             Subscribe to the given topic.
unsub TOPIC           Unsubscribe from the given topic.
retain (true|false)   Set retain flag for subsequent pubs.
pub TOPIC MSG         Publish MSG to the given TOPIC.
sleep DURATION        Sleep for DURATION (Go syntax).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL