Is there anyone around these parts that is familiar with the ESP32 & BLE? For my senior desing project, I’m building an alert system using 2 ESP32’s one as a BLE client & one as the BLE server.
The problem is, when the client disconnects, I get a HEAP error.
00:02:33.902 -> CORRUPT HEAP: Bad head at 0x3ffdec90. Expected 0xabba1234 got 0x3ffdef3c
00:02:33.902 -> assertion "head != NULL" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c", line 214, function: multi_heap_free
00:02:33.937 -> abort() was called at PC 0x400e6de3 on core 0
00:02:33.937 ->
00:02:33.937 -> Backtrace: 0x40091448:0x3ffd15d0 0x40091679:0x3ffd15f0 0x400e6de3:0x3ffd1610 0x400910d5:0x3ffd1640 0x40084b26:0x3ffd1660 0x400850e1:0x3ffd1680 0x4000bec7:0x3ffd16a0 0x400fd0d9:0x3ffd16c0 0x400fcc1a:0x3ffd16e0 0x400fccdc:0x3ffd1700 0x40136943:0x3ffd1720 0x40138242:0x3ffd1740 0x40135fe6:0x3ffd19d0 0x40136125:0x3ffd19f0 0x4013e662:0x3ffd1a10 0x401136ca:0x3ffd1a30 0x4008e089:0x3ffd1a60
00:02:33.971 ->
00:02:33.971 -> Rebooting...
00:02:33.971 -> ets Jun 8 2016 00:22:57
I’ve been stumped on this for a bit & can share more code if anyone thinks they’re interested in helping.