mm-services-flukso
v0.0.4
Published
Flukso service for MicroMinion platform
Downloads
9
Readme
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)
})