Seneca plugin for interacting with Losant API
Node.js >= v6
$ npm i seneca seneca-losantrequire('seneca')()
.use(require('seneca-losant'), {
id: 'MY_DEVICE_ID',
key: 'API_ACCESS_KEY',
secret: 'SECRET_KEY'
});role:losant, cmd:send
Required arguments:
state- Object representing device state; keys should be configured in the device's settings on Lodash's site.
Optional arguments:
time- ADateobject representing the time of the state update. Defaults to "now".
Returns undefined upon success.
© 2016 Christopher Hiller. Licensed MIT.