# Portable BLE by Design: The Bluetooth Rewrite in Arduino ESP32 v4.0

DevFeed: [Portable BLE by Design: The Bluetooth Rewrite in Arduino ESP32 v4.0](<https://devfeed.tech/articles/portable-ble-by-design-the-bluetooth-rewrite-in-arduino-esp32-v4-0-90583.md>)

Original publisher: [Read original article](<https://developer.espressif.com/blog/2026/10/arduino-bluetooth-refactor/>)

Author: John Lee

Published: 2026-10-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [Blog on Developer Portal](<https://devfeed.tech/sources/blog-on-developer-portal.md>)

Topics: [Arduino](<https://devfeed.tech/topics/arduino.md>), [Bluetooth](<https://devfeed.tech/topics/bluetooth.md>), [ESP32](<https://devfeed.tech/topics/esp32.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [arduino](<https://devfeed.tech/tags/arduino.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [ble](<https://devfeed.tech/tags/ble.md>), [blog](<https://devfeed.tech/tags/blog.md>), [bluetooth](<https://devfeed.tech/tags/bluetooth.md>), [bluetooth-le](<https://devfeed.tech/tags/bluetooth-le.md>), [library](<https://devfeed.tech/tags/library.md>), [migrate](<https://devfeed.tech/tags/migrate.md>), [v3](<https://devfeed.tech/tags/v3.md>)

## AI overview

Arduino Core for ESP32 v4.0 refactors its BLE library to provide a unified API across NimBLE and Bluedroid, with Bluetooth 5 enabled by default on supported chips. The update also adds multi-peer BluetoothSerial support and new BLE features. Existing sketches require changes when migrating from v3.x to v4.0.0-RC1.

## Source excerpt

The Arduino core v4.0 overhauls its Bluetooth libraries with modernized, safer codebases: the BLE library gains a unified API across NimBLE and Bluedroid with Bluetooth 5 enabled by default, while BluetoothSerial adds multi-peer support. Here is what changed and how to migrate from v3.3.12 to v4.0.0-RC1.