In this section, we will use the Terminal window to pair the Android's Bluetooth with the RPi's Bluetooth. Before we start with the pairing process, we need to install a Bluetooth package inside our RPi and make modifications to certain files. To do this, take the following steps:
- First, to install the Bluetooth package, enter the following command in the Terminal window:
sudo apt-get install libbluetooth-dev
The output of the preceding command can be seen in the following screenshot:
- Next, we will open the bluetooth.service file and make some minor modifications. To open the file, enter the following command:
sudo nano /lib/systemd/system/bluetooth.service
- Next, type -C after /bluetoothd. This will turn on the compatible mode of the RPi's Bluetooth as follows:
- After this, press Ctrl + O and then hit...