Skip to main content

Questions tagged [heap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers

Is std::string (and ephemeral memory allocation in general) safe to use for ESP32 Arduino?

I know that with 8-bit AVR Arduinos, std::string is widely regarded as fundamentally unsafe due to problems with heap-fragmentation (partly due to limited ram, and partly because the WAY the ...
Bitbang3r's user avatar
  • 551
0 votes
1 answer

ESP32 heap problem

I wrote a simple C++ program (just main.cpp and corresponding files & libraries) to get BME280 sensor readings. It worked fine until I decided to use good programming practices, using ...
Carlos Gityn Hochberg's user avatar
12 votes
6 answers

Using String instead of C string, yet another attempt to touch a loaded issue

I've been reading a lot over the years why we should not use the notorious String class and how heap fragmentation is bad practice and not professional and we should never use it in our programs or we'...
Nino's user avatar
  • 411