Hello, I have been trying to follow this guide but without success. My phone can scan and recognize the ESP32 but it could not connect. I am using Android version 13 and Arduino IDE version 2.1.1.
When I followed the guide, the Neil Kolban's ESP32 library was conflicting with the built-in Arduino IDE ESP32 library. I tried to disable the built-in library but it did not work either. Also don't know where to find the BLE extension version 20201223, so I used the latest version (20230728). I also tried with the BLE-device-sort.aix.
The Arduino code that I tried:
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
#define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b"
#define CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8"
void setup() {
BLEDevice::init("Here_ESP32");
BLEServer *pServer = BLEDevice::createServer();
BLEService *pService = pServer->createService(SERVICE_UUID);
BLECharacteristic *pCharacteristic = pService->createCharacteristic(
CHARACTERISTIC_UUID,
BLECharacteristic::PROPERTY_READ |
BLECharacteristic::PROPERTY_WRITE
);
pCharacteristic->setValue("Connected.");
pService->start();
BLEAdvertising *pAdvertising = pServer->getAdvertising();
pAdvertising->start();
}
void loop() {}
I am using ESP-WROOM-32 instead of ESP-WROOM-32D.
Can anybody help please?
Thank you!