hermesjs-mqtt

2.2.0 • Public • Published

hermesjs-mqtt

MQTT adapter for HermesJS.

Installing

npm install hermesjs-mqtt

Example

const Hermes = require('hermesjs');
const MqttAdapter = require('hermesjs-mqtt');
 
const app = new Hermes();
 
app.addAdapter(MqttAdapter, {
  url: 'mqtt://test.mosquitto.org',
  topics: ['hola/+', 'adios/+'],
});

See a working example here.

Author

Fran Méndez (fmvilas.com)

Package Sidebar

Install

npm i hermesjs-mqtt

Weekly Downloads

5

Version

2.2.0

License

MIT

Unpacked Size

6.12 kB

Total Files

7

Last publish

Collaborators

  • fmvilas