To fix a bug in the espnow module (https://github.com/micropython/micropython/pull/6515) my current hacky fix is:
Code: Select all
if (p < MP_STATE_MEM(gc_pool_start) || MP_STATE_MEM(gc_pool_end) < p) {
// Copy message to a temp buffer on the stack
}
Why: Because esp_now_send() panics on esp8266 (not esp32) if a string that is interned in ROM is passed as the message.