nodejs library for MetaWear platform from https://www.mbientlab.com/
Build package from repository:
git clone git@github.com:brainexe/node-metawear.git
cd node-metawear
npm install
An alternative is to install the NPM module directly:
npm install node-metawear
Additionally you have to follow some steps, depending of your OS
Install required system packages
sudo apt-get install bluetooth bluez-utils libbluetooth-dev
This command grants the node binary cap_net_raw privileges, so it can start/stop BLE advertising. Then you don't need the "sudo" prefix anymore:
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
Same as Linux, but the main difference here is that you’ll need to run Node through host-dbus, since it’s accessing the Bluetooth adapter attached through Chrome OS.
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
export DEBUG="noble-device"
host-dbus node examples/all.js
thx to Lance
npm install
DEBUG="noble-device" node examples/all.js
Run examples in debug output
DEBUG="noble-device" node examples/all.js
The functionality is very limited at the moment:
Note : The versioning restarted at v1.0.0 in order to better handle the major and minor releases as from now.
npm install -g jasmine
npm test