Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Firmware/RTK_Everywhere/Bluetooth.ino
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ void bluetoothStart(bool skipOnlineCheck)
// Uncomment the next line to force deletion of all paired (bonded) devices
// (This should only be necessary if you have changed the SSP pairing type)
//settings.clearBtPairings = true;

// Enable secure pairing without PIN :
// iPhone displays Connection Unsuccessful - but then connects anyway...
bluetoothSerialSpp->enableSSP(false, false);
Expand Down Expand Up @@ -650,6 +650,7 @@ void bluetoothStart(bool skipOnlineCheck)
recordSystemSettings();
}

#ifdef COMPILE_AUTHENTICATION
esp_sdp_init();

esp_bluetooth_sdp_hdr_overlay_t record = {(esp_bluetooth_sdp_types_t)0};
Expand All @@ -663,6 +664,7 @@ void bluetoothStart(bool skipOnlineCheck)
record.service_name = (char *)deviceName;
// record.rfcomm_channel_number = 1; // Doesn't seem to help the failed connects
esp_sdp_create_record((esp_bluetooth_sdp_record_t *)&record);
#endif // COMPILE_AUTHENTICATION
}
}

Expand Down
5 changes: 5 additions & 0 deletions Firmware/RTK_Everywhere/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ set -e
git reset --hard --quiet HEAD
make

# MFi authentication
sed -i 's|#define COMPILE_AUTHENTICATION|//#define COMPILE_AUTHENTICATION|' RTK_Everywhere.ino
make
git reset --hard --quiet HEAD

# Bluetooth
sed -i 's|#define COMPILE_BT|//#define COMPILE_BT|' RTK_Everywhere.ino
make
Expand Down