Sign inSign up

marknjunge/mqtt-broker

By marknjunge

•Updated over 6 years ago

Image
0

1.0K

marknjunge/mqtt-broker repository overview

⁠MQTT Broker

A node.js MQTT broker app with (optional) data storage in MongoDB.

For an explanation of MQTT, see MQTT Essentials⁠.

⁠Installation

  1. Clone the repository and install the dependencies
git clone https://github.com/MarkNjunge/mqtt-broker.git
  1. Install dependencies
yarn install
  1. Create a .env file similar to .env.sample⁠ in the root directory.
cp .env.sample .env
  1. Run the broker
yarn start

⁠Usage

Connect to the broker using the url mqtt://localhost:1883 using a client app such as MQTTBox⁠.

To attach the broker to a http server, set ATTACH_HTTP to true and HTTP_PORT to your desired port. Then connect to ws://localhost:3000

⁠Built with

Tag summary

Content type

Image

Digest

Size

34.1 MB

Last updated

over 6 years ago

docker pull marknjunge/mqtt-broker