Skip to content

alexking/mqtt-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sometimes when you're working on an MQTT system, you want to trigger various different messages for testing. This tool lets you define a list of messages to send on various topics with different data. It then repeatedly asks you which you'd like to send.

running in a terminal

Copy the config.example.yaml to config.yaml and put in your MQTT connection information and configure a list of messages to choose between. Then just run node main.js to get started.

mqtt:
  url: http://127.0.0.1
  options:

messages:
  - name: send a message
    topic: messages
    data:
      yourDataHere: describe the JSON object you want to send in YAML
      or: {"in" : "JSON"}

About

Send canned messages to MQTT

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published