Node-js Mqtt helper utility
Node Js utility for dealing with common mqtt related tasks. Like extracting values from a nested payload structure.
Initial release of code and configuration examples. Tested on linux.
Clone or unzip repository. Open shell or the windows cmd, cd inside and type:
npm install
Simply reference in a different application: const stdMqtt = require("../stdMqtt/stdMqtt");
stdMqtt.getPayloadChunk(pathPieces, jsonTopicPayload)
The basic logging functionality can be tested by running:
- npm run test
- node stdMqttTests.js