Timeline for Arduino esp32 randomly corrupted variable
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 21, 2022 at 0:27 | vote | accept | Diego Serrano | ||
| Jan 17, 2022 at 14:18 | comment | added | Diego Serrano | @KIIV I add delete splitter; Thx for your suggestion. | |
| Jan 17, 2022 at 9:55 | comment | added | KIIV |
Hope you delete that dynamically allocated StringSplitter somewhere later, otherwise it'll eventually run out of memory. Is it even needed to have it allocated like this? Something like StringSplitter splitter { mensaje.topic, '/', -1 }; should be just fine and it's managed automatically
|
|
| Jan 16, 2022 at 15:39 | comment | added | Diego Serrano | Thx @Majenko that was the problem. | |
| Jan 16, 2022 at 15:39 | answer | added | Diego Serrano | timeline score: 2 | |
| Jan 16, 2022 at 15:19 | comment | added | Majenko | Chances are there's something happening in some other thread that is corrupting (or even destroying entirely) your payload. | |
| Jan 16, 2022 at 15:15 | history | asked | Diego Serrano | CC BY-SA 4.0 |