ESPAsyncE131 icon indicating copy to clipboard operation
ESPAsyncE131 copied to clipboard

Crash on arduino-esp32 v3.1.1

Open tresler opened this issue 1 year ago • 0 comments

Program crash with new version of Arduino. New version need TCP lock. You must include #include <lwip/tcpip.h> and in ESPAsyncE131::initMulticast change igmp_joingroup(&ifaddr, &multicast_addr); to:

if (!sys_thread_tcpip(LWIP_CORE_LOCK_QUERY_HOLDER)) {
   LOCK_TCPIP_CORE();
}
igmp_joingroup(&ifaddr, &multicast_addr);
if (sys_thread_tcpip(LWIP_CORE_LOCK_QUERY_HOLDER)) {
   UNLOCK_TCPIP_CORE();
}

tresler avatar Jan 15 '25 13:01 tresler