Giter Club home page Giter Club logo

mqtt-receiver's Introduction

mqtt-receiver

This app can be used to test the delay to a mqtt server with different payload sizes and timing intervals. The app can be build into a container or run from the command line.

Run from command line

Make sure you have npm and node installed on your system.

Install packages using:

npm install

run the app with:

node server.js -u user -s passwd -h localhost

the flags stand for:

  • -h hostname (if ommited mqtt://localhost is used)
  • -p port (if ommited port 1883 is used)
  • -u user
  • -s passwd
  • -o output_file file to write message info to (if ommited stdout is used)
  • -d data_file file to write message data to
  • -t topic to subscribe to (use # as a wildcard for all)
  • -q qos_option (0 if ommitted)
  • -z true:flase print out time difference with last message
  • -c Certificate_file Certificate for tls authentication name
  • -k Private_key_file Private key file name for tls authentication
  • -r Root_certificate_file Root Certificate file name
  • -a true:false reject unauthorised connection true or false
  • -v level for verbose output

example usage:

node server.js -u username -s 'password' -v 2 -t '#' -z true -h mqtts://localhost -p 8883 -k client_key.pem -c client_certificate.pem -r ca_certificate.pem -a true

Optional using docker

Build docker image

docker build -t mqtt-receiver .

Run the docker image using:

docker run -it mqtt-receiver -u user -s passwd -h localhost

mqtt-receiver's People

Contributors

geerdkakes avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.