This is a random number generator that publishes the values it generates to an MQTT topic.
- Node.js >= 10.1.0
- npm >= 5.6.0
- Any message broker that implements the MQTT protocol version 3.1.x or later.
git clone [email protected]:far-edge/mqtt-random-data-publisher.git
Create .env
based on .env.example
.
cp .env.example .env
Edit .env
.
cd mqtt-random-data-publisher
nodeenv -n 10.1.0 --prebuilt env
. env/bin/activate
npm install
npm start
deactivate_node
npm run lint