Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

concava-adapter-mqtt

0.1.1 • Public • Published

ConCaVa MQTT storage adapter

ConCaVa adapter for storage through MQTT.

This storage adapter receives data from ConCaVa and publishes the JSON payload on topic concava/<device ID>. Mosca is used as the MQTT broker.

See ConCaVa with MariaDB and MQTT for a working setup.

Requires ConCaVa v0.4+.

Install

npm install concava-adapter-mqtt

Configure

A ConCaVa configuration example:

import { storage } from 'concava-adapter-mqtt'
 
export default {
    debug: true,
 
    ...
 
    storage: {
        method: storage,
        config: {
            port: 1883,
            backend: {
                type: 'mongo',
                url: 'mongodb://example.com:27017/mqtt',
                pubsubCollection: 'concava',
                mongo: {},
            },
        },
    },
}

install

npm i concava-adapter-mqtt

Downloadsweekly downloads

2

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability