0.2.5 • Published 10 years ago

mqttbot v0.2.5

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

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

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago