Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
MQTT bot for broker testing on CLI
JavaScript
branch: master
Failed to load latest commit information.
lib Add random number message
test remove testcode, fixed typo
.editorconfig 0.0.1
.gitattributes 0.0.1
.gitignore 0.0.1
.jshintrc 0.0.1
.travis.yml 0.0.1
Gruntfile.js 0.0.1
package.json 0.2.5
readme.md Update readme

readme.md

mqttbot Build Status Built with Grunt

MQTT bot for broker testing on CLI

HOW TO USE

# localhost

~ mqttbot -b 5 -t test mqtt://localhost

# CloudMQTT

~ mqttbot -b 10 -t test mqtt://username:passwd@mx.cloudmqtt.com:18629

# Using WebSocket

~ mqttbot -b 2 -t test ws://localhost:8080/mqtt
~ mqttbot -b 2 -t test ws://broker.mqttdashboard.com:8000/mqtt
~ mqttbot -b 2 -t test ws://test@gmail.com:1234@localhost:8000/mqtt

# Timer interval option

~ mqttbot -b 1 -t test -i 1000 mqtt://localhost

# Prompt option

~ mqttbot -b 1 -t test -p mqtt://localhost
bot:0> connect to mqtt://localhost
bot:0> subscribe to test
bot:1> connect to mqtt://localhost
bot:1> subscribe to test
bot:0> waiting for connection
bot:0> has a connection
> it's for testing
bot:0> is sending it's for testing at 1390851918570
bot:0> got message(1/2) it's for testing at 1390851918570
bot:1> got message(2/2) it's for testing at 1390851918570
> waiting for message

Options

  • -t, --topic [string] topic to publish on
  • -b, --bot [int] number of bots
  • -i, --interval [int] timer interval in ms between publications
  • -p, --prompt interactive prompt, without timer
  • -r, --random [min]-[max] random number message
  • -v, --version display the version
  • -h, --help print this help

License

MIT license

Something went wrong with that request. Please try again.