Package Exports
- seneca-losant
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (seneca-losant) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
seneca-losant
Seneca plugin for interacting with Losant API
Requirements
Node.js >= v6
Install
$ npm i seneca seneca-losantUsage
require('seneca')()
.use(require('seneca-losant'), {
id: 'MY_DEVICE_ID',
key: 'API_ACCESS_KEY',
secret: 'SECRET_KEY'
});Action Patterns
Send Device State to Losant
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.
License
© 2016 Christopher Hiller. Licensed MIT.