node-red-contrib-ignoble

0.0.15 • Public • Published

ignoble

A Node-Red BLE (Bluetooth Low Energy) central module.

Prerequisites

Will work anywhere that noble works.

Tested with Raspberry Pi Zero W (CYW43438), Nano Pi NEO AIR (AP6212A), and Red Bear BLE Nano V2 (nRF52x).

Installation

sudo npm install node-red-contrib-ignoble

Usage

Create a scanner node. This does not run by itself - hook up a trigger to it!

Connect a peripheral node to the scanner node and configure it to your liking, or don't.

Connect a service node to the peripheral node. This node just transforms data. You need it.

Connect a characteristic node to the service node. This node will let you fish out characteristic data.

After the characteric node has run, msg.payload will contain its data - this can be shunted to other nodes like MQTT, Twitter or a debug node.

Example

An example flow of two temperature sensors being polled every 30 minutes and characteristics exposed over Homebridge/MQTT. A third SHT21 sensor will push its temperature (2a6e) when the characteristic changes.

alt text

An example flow of subscribing to a peripheral's ccc5 characteristic. Set the peripheral's timeout to 0 and turn on the characteristic's subscribe flag to maintain notifications forever or until the device is disconnected.

alt text

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.152latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.152
0.0.130
0.0.123
0.0.111
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.41
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i node-red-contrib-ignoble

Weekly Downloads

7

Version

0.0.15

License

ISC

Unpacked Size

145 kB

Total Files

6

Last publish

Collaborators

  • gtalusan