BluetoothSerial with Secure Simple Pairing - Bluetooth Classic

gagga11
Posts: 1
Joined: Sat May 09, 2020 9:13 pm

BluetoothSerial with Secure Simple Pairing - Bluetooth Classic

Postby gagga11 » Sat May 09, 2020 9:30 pm

I try to implement a Bluetooth Classic Master and connect an ESP32 to a Bluetooth Classic device that uses Secure Simple Pairing (SSP).

Code: Select all

#include "BluetoothSerial.h"
BluetoothSerial SerialBT;
uint8_t address[6]  = {0x4C, 0xE1, 0x73, 0xB3, 0x8E, 0x76};
bool connected;

void setup() {
  Serial.begin(115200);
  SerialBT.begin("ESP32test", true); 
  //SerialBT.setPin(pin);
  Serial.println("This device started in master mode, make sure remote Bluetooth Classic device is in pairing mode!"); 
  connected = SerialBT.connect(address);
...
SerialBT.connect always returns true although no pairing is established. How do I enable SSP? Do I need to disable static PIN pairing somehow to make this work?

I am using Arduino 1.8.12 and esp32 version 1.0.4 (latest in Arduino)

Who is online

Users browsing this forum: No registered users and 11 guests