mm-services-flukso
0.0.4 • Public • Published mm-services-flukso
Flukso Service for MicroMinion platform
Initialization
var MicroMinionPlatform = require('mm-platform')
var Flukso = require('mm-services-flukso')
var platform = new MicroMinionPlatform()
var flukso = new Flukso({
platform: platform,
logger: platform._log
})
Messaging API
Published messages
flukso.sensor.
Publishes sensor values.
platform.messaging.on('self.flukso.*', function(topic, sender, data) {
console.log(data.value)
console.log(data.unit)
console.log(data.sensor)
})
Package Sidebar
Install
Weekly Downloads