episensor / node-red-contrib-epi-bluetooth

A Node-RED node to set up a Bluetooth LE peripheral
MIT License
2 stars 0 forks source link

Error: "bleNotify: received input but BLE interface is not initialized" #10

Open fromanza opened 11 months ago

fromanza commented 11 months ago

Running node-red on PI4 with latest bookworm variant. After following the node-red instructions and initalizing, I get the error: "bleNotify: received input but BLE interface is not initialized"

I have run npm install bleno@npm:@abandonware/bleno and can sucessfully create a peripheral following this example.

any insights?

fromanza commented 11 months ago

For those digging, looks like permissions need to be set. I ran this which seems to have solved the problem. sudo setcap cap_net_raw+eip $(eval readlink -f which node)