Package Exports
- movehub-async
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 (movehub-async) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
movehub async
Asynchronous functions for the Lego Boost Move Hub
Install
$ npm install movehub-async
Usage
const boost = require('movehub-async');
await boost.bleReadyAsync();
const connectDetails = await boost.hubFoundAsync();
const hub = await boost.connectAsync(connectDetails);
await hub.connectAsync();
await hub.ledAsync('red');
await hub.ledAsync('yellow');
await hub.ledAsync('green');