BlendMicro npm
Node.js module for BlendMicro and BLENano with BLE.
Node.js <---(BLE)---> BlendMicro/BLENano
- using noble npm as BLE wrapper
- serialport npm like API
sites
Install
% npm i blendmicro
BLE Terminal
% npm i blendmicro coffee-script -g
% blendmicro -help
% blendmicro -list
% blendmicro -term [DEVICE_NAME]
Samples
see samples directory.
Usage
Open
blendmicro side
void
if you are using BLE Nano, see samples/
directory.
node.js side
var BlendMicro = ; // search device with BLE peripheral namevar bm = "BlendMicro"; // search with deefault name "BlendMicro"var bm = ; bm;
Read
bm;
Write
bm; bm;
Close
bm;
Auto re-connection
bmreconnect = false // default is "true" (enabled)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request