Raspberry Pi 3 Cookbook for Python Programmers
上QQ阅读APP看书,第一时间看更新

Connecting to Bluetooth devices

To start, we need to put the Bluetooth device into discoverable mode by clicking on the Bluetooth icon and selecting Make Discoverable. You will also need to make the device you want to connect to discoverable and ready to pair; this may vary from device to device (such as pressing a pairing button):

Setting the Bluetooth up as discoverable

Next, select Add Device... and select the target device and Pair:

Selecting and pairing the required device

The pairing process will then start; for example, the BTKB-71DB keyboard will need the pairing code 467572 to be entered onto the keyboard for the pairing to complete. Other devices may use default pairing codes, often set to 0000, 1111, 1234, or similar:

Following the instructions to pair the device with the required pairing code

Once the process has completed, the device will be listed and will connect automatically each time the devices are present and booted.