#ble-shepherd
A network controller and manager for the BLE machine network running on node.js
Please visit the Wiki.
ble-shepherd is a BLE network controller running on node.js. It is an extension of BLE central device that aims to help you in building a BLE machine network with less effort.(Here is a quick DEMO!)
ble-shepherd has all the features you need in controlling your BLE network, monitoring and operating BLE peripheral devices. This controller has carried many network managing things for you, i.e., auto scanning for peripheral devices, storing(/reloading) connected devices records to(/from) the built-in database, configuring connection parameters, and notifying online/offline status of devices with auto reconnection.
With ble-shepherd, you can get rid of such networking things and focus on your application logics. It opens another way of implementing IoT applications with BLE devices. With node.js, you can build your own application console(or dashboard) and design your own RESTful APIs in seconds. It's easy to make your BLE devices happy on the cloud.
$ npm install ble-shepherd --save
- Hardware
- SmartRF05EB (with CC2540EM)
- CC2540 USB Dongle
- BLE4.0 USB adapter
- CC2640/CC2650 (Not tested yet. I don't have the kit.)
See Usage on the Wiki for details.
The following example shows how to create a new instance of the BleShepherd
class and call method start()
to bring the central
up.
- Using
noble
as a sub-module
var BleShepherd = require('ble-shepherd');
var central = new BleShepherd('noble');
// do something before app starting
central.start();
Licensed under MIT.