This flow checks whether a Bluetooth device is in range. It does not require BT pairing because name lookups are allowed on any device. Tested on a Raspberry Pi 3 with the integrated BT receiver and some cellphones.
- For Raspian, install
hcitool
withsudo apt-get install bluez
- Verify that BT works, e.g. with
hciconfig
- The user running Node-RED must be a member of the
bluetooth
group, e.g.sudo usermod -a -G bluetooth nodered
- Replace the MAC in the cellphone node with the target device's MAC. If unsure where to find it, make the device discoverable and do
hcitool scan