arthurescriou / mqtt-js-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MQTT test

To test MQTT broker

yarn #to install dependencies
node read.js #run a client that listen to topic and print message
node main.js #run a client that send message to topic every second

configuration

Default value you can change in the environment variables

TOPIC="topic"
ADDRESS="ws://localhost:1883"

About


Languages

Language:JavaScript 100.0%