Fix board ID and NimBLE 2.x API for ESP32-S3-N16R8
- Use esp32-s3-devkitc1-n16r8 board (16MB flash, 8MB PSRAM OPI) instead of generic esp32-s3-devkitc-1 (8MB, no PSRAM) - Remove setScanResponse() — NimBLE 2.x dropped this method - Board definition handles PSRAM build flags automatically Verified: clean boot, no PSRAM errors, BLE advertising as Travler-G2.
This commit is contained in:
parent
068f38d7eb
commit
420a8e2039
@ -3,7 +3,7 @@
|
||||
|
||||
[env:esp32s3]
|
||||
platform = espressif32
|
||||
board = esp32-s3-devkitc-1
|
||||
board = esp32-s3-devkitc1-n16r8
|
||||
framework = arduino
|
||||
|
||||
; NimBLE for BLE (lighter than BlueDroid), NeoPixel for status LED
|
||||
@ -12,9 +12,7 @@ lib_deps =
|
||||
adafruit/Adafruit NeoPixel@^1.12
|
||||
|
||||
build_flags =
|
||||
-DBOARD_HAS_PSRAM
|
||||
-DBOARD_HAS_PSRAM_OPI
|
||||
; Serial via CP2102N UART0 port, not USB-CDC
|
||||
; Serial via CH343 UART port, not USB-CDC
|
||||
-DARDUINO_USB_CDC_ON_BOOT=0
|
||||
|
||||
monitor_speed = 115200
|
||||
|
||||
@ -103,7 +103,6 @@ static void initBLE() {
|
||||
NimBLEAdvertising *pAdv = NimBLEDevice::getAdvertising();
|
||||
pAdv->addServiceUUID(NUS_SERVICE_UUID);
|
||||
pAdv->setAppearance(0x0080); // Generic Computer
|
||||
pAdv->setScanResponse(true);
|
||||
NimBLEDevice::startAdvertising();
|
||||
|
||||
Serial.printf("[BLE] Advertising as \"%s\"\n", BLE_DEVICE_NAME);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user