This is just code that publishes the values found in a JSON file 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 git@github.com:far-edge/mqtt-file-data-publisher.git
Create .env
based on .env.example
.
cp .env.example .env
Edit .env
.
cd mqtt-file-data-publisher
nodeenv -n 10.1.0 --prebuilt env
. env/bin/activate
npm install
npm start
deactivate_node
npm run lint