ESP32 Dev Board bluetooth not connecting

been testing different settings, it initializes but will not connect nor can i see it as a device.

outputting some debugging

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

configsip: 0, SPIWP:0xee

clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00

mode:DIO, clock div:1

load:0x3fff0030,len:4888

load:0x40078000,len:16516

load:0x40080400,len:4

load:0x40080404,len:3476

entry 0x400805b4

=== ESP32 Basic Test ===

Starting...

1. Initializing BLE...

2. Creating BLE Server...

3. Starting advertising...

Setup complete!

System running...

here is my code im uploading

#include <Arduino.h>
#include <BLEDevice.h>
#include <BLEServer.h>

const int LED_PIN = 2;

void setup() {
    Serial.begin(115200);
    delay(1000);  // Give serial time to initialize
    
    pinMode(LED_PIN, OUTPUT);
    
    // Flash LED to show we're starting
    for(int i = 0; i < 3; i++) {
        digitalWrite(LED_PIN, HIGH);
        delay(100);
        digitalWrite(LED_PIN, LOW);
        delay(100);
    }
    
    Serial.println("\n=== ESP32 Basic Test ===");
    Serial.println("Starting...");
    
    // Try to initialize BLE
    Serial.println("1. Initializing BLE...");
    BLEDevice::init("ESP32_TEST");
    delay(1000);
    
    Serial.println("2. Creating BLE Server...");
    BLEServer *pServer = BLEDevice::createServer();
    delay(1000);
    
    Serial.println("3. Starting advertising...");
    BLEAdvertising *pAdvertising = pServer->getAdvertising();
    pAdvertising->start();
    
    Serial.println("Setup complete!");
}

void loop() {
    // Simple LED blink to show we're running
    digitalWrite(LED_PIN, HIGH);
    delay(500);
    digitalWrite(LED_PIN, LOW);
    delay(500);
    
    Serial.println("System running...");
}

actual board

AITRIP 2 Sets ESP-WROOM-32 ESP32 ESP-32S Type-C USB Development Board Type-C USB CH340C WiFi+Bluetooth Ultra-Low Power Dual Core ESP32-DevKitC-32 ESP-WROOM-32 Expansion Board for Arduino

I have 2 and tried both same issue, any advice or reccomndation on a better board, i would like a 8 mb of ram as i want to store wav files directly

looks like this is what I should have tried first Arduino® Nano ESP32 with headers

Can you run the ESP32 BLE example sketch for the server?

File>Examples>BLE>Server

it initializes but will not connect nor can i see it as a device.

What are you using to look for the server?

Was using iPhone detect, also had code to connect to BT speaker when initiating paring from the speaker but never worked.

if I run your code from post 1 on an ESP32 Dev module and then run BLE terminal on my Android phone a scan shows

I must have 2 defective boards then, I have tried many attempts with no success,, ty for confirming the dev code is working.

very odd - never had such problems and I have about 20 ESP32 modules

try a simpler example, e.g. File>Examples>BLE>UART which should send/receive using BLT terminal

these were amazon knock offs

More to the point would be a result from using simpler, and more sensible code, as advised in reply #7.

Ran the excample,

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

configsip: 0, SPIWP:0xee

clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00

mode:DIO, clock div:1

load:0x3fff0030,len:4888

load:0x40078000,len:16516

load:0x40080400,len:4

load:0x40080404,len:3476

entry 0x400805b4

Waiting a client connection to notify...

Ln 1, Col 1

ESP32 Dev Module

on COM3

2

not showing as a bt device

what smartphone app are you using to do the BLE scan?

if I run File>Examples>BLE>UART on an ESP32 BLE terminal on an Android phone scan displays

if I transmit ASCII text from phone

the ESP32 serial monitor displays

Waiting a client connection to notify...
*********
Received Value: hello

*********
*********
Received Value: 1234567890

*********
start advertising
*********
Received Value: hello esp32

*********

The built in apple bluetooth app, searching for devices....

I ordered some Adrino nano esp32 devices to move forward with