ESPAsyncE131
ESPAsyncE131 copied to clipboard
Crash on arduino-esp32 v3.1.1
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();
}