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+.
npm install concava-adapter-mqtt
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: {},
},
},
},
}