Step 2 - Installing Bluetooth and Node.js

The next step is to install the essential Bluetooth and Node.js packages. For Bluetooth communication, you will require three packages:

  • Bluetooth
  • BlueZ
  • libbluetooth-dev

These packages are essential as the Bluetooth gateway will use them to communicate with Bluetooth devices. These steps are also necessary if you are working with an external Bluetooth USB dongle.

You can find further details about BlueZ at http://www.bluez.org/.

The next step is to install Node.js on your Raspberry Pi. Since the gateway application is written in JavaScript, you will need Node.js to run the application. The easiest way to install it on a Debian-based Linux device is with this set of commands:

curl -sL https://deb.nodesource.com/setup_6.x ...

Get Building Bluetooth Low Energy Systems now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.