diff --git a/README.md b/README.md index 1662982..1184ee7 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ SPIFFS | ❌ | ❌ BLE | - | ❌ NTP | ❌ | ❌ OTA | ✔️ | ❌ -MDNS | ✔️ | ✔️ +MDNS | ✔️ | ❗ MQTT | ✅ | ❌ SD | ❌ | ❌ diff --git a/arduino/libretuya/libraries/mDNS/LwIPmDNS.cpp b/arduino/libretuya/libraries/mDNS/LwIPmDNS.cpp index 4c813b9..f4735bc 100644 --- a/arduino/libretuya/libraries/mDNS/LwIPmDNS.cpp +++ b/arduino/libretuya/libraries/mDNS/LwIPmDNS.cpp @@ -61,6 +61,7 @@ bool mDNS::begin(const char *hostname) { struct netif *netif = netif_list; uint8_t enabled = 0; while (netif != NULL) { + netif->flags |= NETIF_FLAG_IGMP; // TODO: detect mdns_netif_client_id by checking netif_get_client_data() // and finding the requested hostname in struct mdns_host if (netif_is_up(netif) && mdns_resp_add_netif(netif, hostname, 255) == ERR_OK) { @@ -100,7 +101,7 @@ bool mDNS::addService(char *service, char *proto, uint16_t port) { struct netif *netif = netif_list; while (netif != NULL) { if (netif_is_up(netif)) { - mdns_resp_add_service(netif, mdnsInstanceName.c_str(), service, protocol, port, 255, NULL, NULL); + mdns_resp_add_service(netif, mdnsInstanceName.c_str(), _service, protocol, port, 255, NULL, NULL); } netif = netif->next; } diff --git a/builder/frameworks/beken-72xx-sdk.py b/builder/frameworks/beken-72xx-sdk.py index 35690fd..5aab8aa 100644 --- a/builder/frameworks/beken-72xx-sdk.py +++ b/builder/frameworks/beken-72xx-sdk.py @@ -350,9 +350,6 @@ env.AddLibrary( "+", "+", "+", - # use ethernetif.c from AliOS since it enables netif IGMP flag - "-", - "+<$SDK_DIR/beken378/alios/lwip-2.0.2/port/ethernetif.c>", ], includes=[ "+",