When allocating an array of 10 items, they are numbered 0-9. All of which means that if you try to copy 11 items into the array, you will run over the end, and stomp on whatever is adjacent to the array. Please update the example to allocate 11 entries.
Hi,
The comment on this line is incorrect: https://github.com/TheDigital1/ESP32_BTHome/blob/main/main.cpp#L46
When allocating an array of 10 items, they are numbered 0-9. All of which means that if you try to copy 11 items into the array, you will run over the end, and stomp on whatever is adjacent to the array. Please update the example to allocate 11 entries.