1.0.0 • Published 10 months ago

integreat-transporter-mqtt v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

MQTT transporter for Integreat

Getting started

Prerequisits

Requires node v18 and Integreat v1.0.

Installing and using

Install from npm:

npm install integreat-transporter-mqtt

Example of use:

import Integreat from 'integreat'
import mqttTransporter from 'integreat-transporter-mqtt'
import defs from './config.js'

const great = Integreat.create(defs, {
  transporters: { mqtt: mqttTransporter },
})

// ... and then dispatch actions as usual

Example service configuration:

{
  id: 'store',
  transporter: 'mqtt',
  options: {
    transporter: {
      uri: 'mqtts://somemqtt.io',
      key: 'svein',
      secret: 's3cr3t',
      topic: 'mqtt/demo'
    }
  }
}

Running the tests

The tests can be run with npm test.

Contributing

Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests.

License

This project is licensed under the ISC License - see the LICENSE file for details.

1.0.0

10 months ago

0.3.0

10 months ago

0.2.0

1 year ago

0.1.1

3 years ago

0.1.0

3 years ago