July 7, 2019

A Bluetooth Low Energy Central Device for the Public Transport Display with Node.JS

The central device for the bluetooth public transport departure display is moved to a Raspberry Pi Zero. For this I am using the NodeJs libraries Noble and Bleno.

Ingredients

Pitfalls

  • The Noble library does not compile with Node.js version 10. So I switched for this project to Node.js version 8 using the Node Version Manager NVM.
  • The node binary needs elevated access rights to operate the bluetooth functions. I give the grants to the node bin like this:
    sudo setcap cap_net_raw+eip /home/christian/.nvm/versions/node/v8.16.0/bin/node