Linux Bluetooth Pairing Device Using BlueZ5.X C Way
The traditional way to connect a device using bluetoothctl tool provided by BlueZ is as follows: Run the bluetoothctl tool from command line $ bluetoothctl [NEW] Controller 00:19:0E:0C:BE:40 tango-charlie [default] Turn ON Pairing agent: [bluetooth]# agent on Agent registered Start Scanning: [bluetooth]# scan on Discovery started [CHG] Controller 00:19:0E:0C:BE:40 Discovering: yes [NEW] Device 00:23:3A:AF:B1:20 00-23-3A-AF-B1-20 [CHG] Device D4:CA:6E:71:F2:A9 RSSI: -57 [NEW] Device A0:10:81:EE:D7:59 Galaxy S8 [CHG] Device A0:10:81:EE:D7:59 RSSI: -57 Stop Scanning: [bluetooth]# scan off [CHG] Device A0:10:81:EE:D7:59 RSSI is nil [CHG] Device 5C:51:4F:E0:EF:4C RSSI is nil [CHG] Controller 00:19:0E:0C:BE:40 Discovering: no Discovery stopped Pair To Bluetooth Device: [bluetooth]# pair A0:10:81:EE:D7:59 Attempting to pair with A0:10:81:EE:D7:59 [CHG] Device A0:10:81:EE:D7:59 Connected: yes Request confirmation [agent] Confirm passkey 110310 (yes/no): yes...