ESP32 uses some firmware already on chip (ROM) and some precompiled libs for BT
I'm pretty sure, 22 limit is hidden there
In latest ESP-IDF- versions, some functions from ROM are moved to flash. This is one reason why size of binaries increased that much.
Not helpful for you (sorry), but at least you know why we have these, and other, limits
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
ESP32 uses some firmware already on chip (ROM) and some precompiled libs for BT
I'm pretty sure, 22 limit is hidden there
In latest ESP-IDF- versions, some functions from ROM are moved to flash. This is one reason why size of binaries increased that much.
Not helpful for you (sorry), but at least you know why we have these, and other, limits