0.1.1 • Published 7 years ago

monit-mqtt v0.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

monit-mqtt

Powered by:

Installation:

It is preferred you install it globally

npm install -g monit-mqtt

Command line options:

Note: All values being passed here indicate defaults.

Options

--options | --opts | --opt | -o

Usage:
monit-mqtt --options options.json

All options parameters accepted by MQTT.js are accepted here. For more details head here.

Note: If option is passed, all other command line options are disregarded. All missing but required options are replaced by defaults of MQTT.js

Example
{
    "port": 1883,
    "host": "test.mosquitto.org",
    "clean": false,
    "clientId": "defaultClient",
    "topics": {
        "$SYS/broker/clients/connected": 1,
        "/#": 1
    }
}
Host

--host | -h

Usage:
monit-mqtt --host test.mosquitto.org
Port

--port | -p

Usage:
monit-mqtt --port 1883
Clean

--clean | --cln | -c

Usage:
monit-mqtt --clean true
ClientId

--clientid | --clid | --id

Usage:
monit-mqtt --clientid testClient
Topics

--topics | --topic | -t

Usage:
monit-mqtt --topic '$SYS/broker/clients/connected' --topic '/#'
QOS

--qos | -q

Usage:
monit-mqtt --qos 1
Log Interval

--interval | -i

Interval in seconds after which stats should be logged.

Usage:
monit-mqtt --interval 1000
To Do
  • Support ES5
  • Add ability to pass custom event handlers
  • Add ability to store stats
  • Add ability to web interface plugin

Feedback, suggestions and everything else is always welcome. Email me at debduttoc@gmail.com

0.1.1

7 years ago

0.1.0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago