Replies: 4 comments 7 replies
-
No, this would be a breaking change. Also, this is a arduino lib and String is used pretty much everywhere. But if you feel to raise a PR with some macro definitions to swap the String implementation used, please go ahead. |
Beta Was this translation helpful? Give feedback.
-
The Arduino's WString class is not outdated, and it is unstable if you don't use it correctly. Using char array is best since you will have complete control on when to allocate and when to free the memory, however you will need to implement pretty much every conversion yourself. I haven't once seen The WLED fork of ESPAsyncWebServer makes extensive use of the WString class, and it works quite smoothly apparantly: |
Beta Was this translation helpful? Give feedback.
-
without judgeing, All in all, i came across the idea recently, since all im using this fork for server for both esp32 and esp8266 platforms. beginResponse_P seem to work ok, but beginResponse crashing. so trying to find the issue now, that is the reason I picked up the String std::string char* topic recently |
Beta Was this translation helpful? Give feedback.
-
the most benefit moving away from
with c++17 esp32 arduino's toolchain is still using c++11 by default and requires tweaking build flags. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How about to get rid of String class?
outdated, unstable etc
move the whole lib to char array, or std::string ( there are benefits)
Beta Was this translation helpful? Give feedback.
All reactions