How to make sure i have the latest arduino esp32 core

really beginner here, im having issue with BLE communication and id like to be sure i have the latest espressif - arduino-esp32 BLE library available. Here’s my actual platformio.ini

[env:seeed_xiao_esp32s3]
platform = espressif32
board = seeed_xiao_esp32s3
lib_deps =
framework = arduino
monitor_speed = 115200
build_flags =
  -D DEBUG=true

what changes should i make ?

With the standard Espressif32 platform, you only get Arduino core 2.0.17.

Usage of the latest Arduino-ESP32 3.x is enabled when you switch to a different platform, such as the one from https://github.com/pioarduino/platform-espressif32.

[env:seeed_xiao_esp32s3]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = seeed_xiao_esp32s3
lib_deps =
framework = arduino
monitor_speed = 115200
build_flags =
  -D DEBUG=true

Ensures you get the latest stable release (v3.0.7 currently).

Irregardless, something as basic as a BLE connection should still work in Arduino-ESP32 2.0.17. So, the problem might lay in code.

so if i add : platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip

it ensures the latest stable version ?

yeah, i know, must be the code but when i compare the methods the class offers me and what i see here ; arduino-esp32/libraries/BLE/src/BLEServer.cpp at master · espressif/arduino-esp32 · GitHub i dont think i have the latest version