IoT
bleno writeup (updated)
A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals. Need a BLE central module? See noble. Note: macOS / Mac OS X, Linux, FreeBSD and Windows are currently the only supported OSes. Prerequisites OS X install Xcode 10.9 or later Linux Kernel version 3.6 or above libbluetooth-dev bluetoothd disabled, if BlueZ 5.14 or later is installed. Use sudo hciconfig hci0 up to power Bluetooth adapter up after stopping or disabling bluetoothd. System V: sudo service bluetooth stop (once) sudo update-rc.d bluetooth remove (persist on reboot) systemd sudo systemctl stop bluetooth (once) sudo systemctl disable bluetooth (persist on reboot) If you’re using noble and bleno at the same time, connected BLE devices may not be able to retrieve a list of services from the BLE adaptor. Check out noble’s documentation on bleno compatibility Ubuntu/Debian/Raspbian sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev Make sure node is on your path, if it’s not, some options: symlink nodejs to node: sudo ln -s /usr/bin/nodejs /usr/bin/node install Node.js using the NodeSource package Fedora / Other-RPM based sudo yum install bluez bluez-libs bluez-libs-devel Intel Edison See Configure Intel Edison for Bluetooth LE (Smart) Development FreeBSD Make sure you have GNU Make: sudo pkg install gmake Read more…