The ESP32 is not really a small RAM system. I've not seen a project fail due to memory issues caused by the String class poking holes in the heap.
why do you need a String, you already have a cString in timeStringBuff you can use
The ESP32 is not really a small RAM system. I've not seen a project fail due to memory issues caused by the String class poking holes in the heap.
why do you need a String, you already have a cString in timeStringBuff you can use
So you mean that I can use cstring already for Serial.println? This project is a test project just to get used to the handling of date and times. Later I want to use it to send some date and timesteps to a mysql database.
@StefanL38
Thank you for giving me that hint.
Yes - a cString can be printed of course
Regarding the so called safestring stuff, it’s not the best time investment for you given it’s very specific. I would suggest you study first the way cString (null terminated chat arrays) are managed in C or C++ and the associated functions. You need to understand how to not overflow a buffer and it’s always good to know the standard functions