node js bleno ble peripheral for raspberry pi
If You want to use this in raspberry pi. Follow the steps below.
Clone this project
Go to the this repository in your local repository with terminal.
Install Node:
sudo apt install node
Install bluez for your Raspberry to work with bluetooth:
sudo apt install bluetooth bluez libbluetooth-dev libudev-dev
Install bleno node js module:
npm install bleno --save
The bluetooth system service needs to be disabled for bleno to work, otherwise some operations will just fail silently. This is quite easy to miss"
sudo service bluetooth stop sudo hciconfig hci0 up
# reactivate hci0 or another hciX you want to use`
Run the application:
sudo npm run peripheral
It is time to look for the peripheral in your BLE Client App.
Enjoy 😊