Espressif released version 4.0.0 of its Arduino core for ESP32 chips on 19 November 2026, two days after version 3.3.13. It is already in the Boards Manager package index, so the Arduino IDE offers it as a normal update.

New base and a new chip

The precompiled libraries the core is built on now come from the ESP-IDF 6.1 release branch; 3.3.13 used ESP-IDF 5.5. Projects that use Arduino as an ESP-IDF component can build against ESP-IDF 5.3 up to, but not including, 6.2.

The pull request that cut the release also adds the ESP32-S31, the new Espressif chip with Wi-Fi 6, Bluetooth 5.4 and an 802.15.4 radio, as a supported target alongside the ESP32, S2, S3, C2, C3, C5, C6, C61, H2 and P4. New board definitions include the LilyGo T-Deck, SparkFun's RedBoard IoT ESP32-P4 boards, the ELEGOO ESP32-C6 and the Soldered NULA CAN ESP32-S3.

What can break

The migration guide is short, but three changes are worth checking before updating a working sketch:

  • Server-Sent Events. The SSE flag moved from the client to the server. server.client().setSSE(true) becomes server.enableSSE(), and isSSE() moves to WebServer too. The old NetworkClient methods still work but are marked for removal in 5.0.
  • LEDC duty. ledcWrite(), ledcWriteChannel() and the ledcFade*() functions now accept 0 to 2^resolution inclusive, as in ESP-IDF, so full on is 1 << resolution. A remapping that treated (1 << resolution) - 1 as full on has been removed. analogWrite() keeps the Arduino range and needs no change.
  • WebServer limits. The library now rejects requests it used to parse without bounds. A URI longer than 2048 bytes gets 414 URI Too Long; a single header line is capped at 4096 bytes; a request whose headers take longer than 10 seconds gets 408 Request Timeout; only the first 256 query arguments are kept; and a Digest authentication nonce is valid for 5 minutes. Every limit is a macro that can be raised from the build, for example -DWEBSERVER_MAX_URI_LEN=8192 in build_opt.h. Espressif says browsers and common HTTP clients stay well inside the defaults.

Smaller changes

A few fixes matter for devices that sit on a home network for months. An update download that stalls is now abandoned after 30 seconds rather than after 300 reads, and HTTPClient times out when a server stops sending a response body. OTA gets an onPrepare() callback, and the espota upload tool asks for the password if it is missing. WebServer authentication works correctly with several clients at once. The network stack can take IPv6 DNS servers, WiFi.SSID() returns the saved network name even while disconnected, and WiFiMulti accepts SSIDs that use the full 32 bytes. For Matter, there are new partition schemes for 4 MB and 8 MB flash, and the Zigbee library now prints the status of a failed commissioning attempt.

For most sketches the update should be uneventful. Those built around SSE, ledcWrite() at full duty or long URLs are the ones to test first, and staying on 3.3.13 for a while is a reasonable choice for devices that already work.