Skip to content

Commit 3f3abde

Browse files
committed
Default to SSP pairing without PIN
1 parent 98279df commit 3f3abde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Firmware/RTK_Everywhere/Bluetooth.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ void bluetoothStart()
553553

554554
// Enable secure pairing without PIN :
555555
// iPhone displays Connection Unsuccessful - but then connects anyway...
556-
//bluetoothSerialSpp->enableSSP(false, false);
556+
bluetoothSerialSpp->enableSSP(false, false);
557557

558558
// Enable secure pairing with PIN :
559559
//bluetoothSerialSpp->enableSSP(false, true);
@@ -562,8 +562,8 @@ void bluetoothStart()
562562
// Support Apple Accessory: Device to Accessory
563563
// 1. Search for an accessory from the device and initiate pairing.
564564
// 2. Verify pairing is successful after exchanging a pin code.
565-
bluetoothSerialSpp->enableSSP(true, true); // Enable secure pairing with PIN
566-
bluetoothSerialSpp->onConfirmRequest(&BTConfirmRequestCallback); // Callback to verify the PIN
565+
//bluetoothSerialSpp->enableSSP(true, true); // Enable secure pairing with PIN
566+
//bluetoothSerialSpp->onConfirmRequest(&BTConfirmRequestCallback); // Callback to verify the PIN
567567

568568
beginSuccess &= bluetoothSerialSpp->begin(
569569
deviceName, true, true, settings.sppRxQueueSize, settings.sppTxQueueSize, 0, 0,

0 commit comments

Comments
 (0)