pushqtt

command module
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 13 Imported by: 0

README

Go Report Card

PushQTT

PushQTT is a simple service that simulates a fleet of MQTT devices that publish messages to a broker regularly. Errors and statistics are exposed as metrics (expvar). This is useful for monitoring or benchmarking a broker.

Usage

pushqtt [FLAGS...]

-c uint
        Concurrency - number of devices (default 1)
-e string
        expvar listening address (default none, metrics disabled)
-f duration
        Publish frequency (default 1s)
-h string
        Broker hostname and port (default "localhost:1883")
-m string
        Message in JSON (default "{\"threadId\":\"%d\"}")
-P string
        Password
-q uint
        QoS: 0, 1 or 2
-t string
        Topic
-u string
        Username
-v      Print paho warning messages
-w duration
        Wait timeout on connect and publish (default 15s)

New releases

This project uses goreleaser and semantic versioning. Dependencies are automatically tracked by go modules.

  1. Commit and push your changes to master
  2. Tag a new release number and git push --tags
  3. GITHIB_TOKEN=[...] goreleaser

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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