7.1. Bluetooth Pairing

Security concerns mean that it is a good habit to pair any two devices before you connect them using Bluetooth. Pairing need be done only once for any two devices. The manual of your mobile phone contains instructions on how to do this. Typically, you can initiate pairing on the phone side in the Bluetooth configuration dialog.

The basic idea is that the phone shows a dialog asking you to type a passcode for the device – you can type any code you like. The other device should also show a dialog asking you to type the same passcode there as well. If your phone asks you to 'Authorize device to make connections automatically', you should answer 'yes' unless you want to authorize each connection individually, on a case by case basis.

Get Mobile Python: Rapid Prototyping of Applications on the Mobile Platform 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.