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);
...
I am using Arduino 1.8.12 and esp32 version 1.0.4 (latest in Arduino)