[beken-72xx] Mark mDNS as broken

This commit is contained in:
Kuba Szczodrzyński
2022-07-28 22:18:04 +02:00
parent 0e129130b1
commit 46e4041ed8
3 changed files with 3 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ SPIFFS | ❌ | ❌
BLE | - | ❌ BLE | - | ❌
NTP | ❌ | ❌ NTP | ❌ | ❌
OTA | ✔️ | ❌ OTA | ✔️ | ❌
MDNS | ✔️ | ✔️ MDNS | ✔️ |
MQTT | ✅ | ❌ MQTT | ✅ | ❌
SD | ❌ | ❌ SD | ❌ | ❌

View File

@@ -61,6 +61,7 @@ bool mDNS::begin(const char *hostname) {
struct netif *netif = netif_list; struct netif *netif = netif_list;
uint8_t enabled = 0; uint8_t enabled = 0;
while (netif != NULL) { while (netif != NULL) {
netif->flags |= NETIF_FLAG_IGMP;
// TODO: detect mdns_netif_client_id by checking netif_get_client_data() // TODO: detect mdns_netif_client_id by checking netif_get_client_data()
// and finding the requested hostname in struct mdns_host // and finding the requested hostname in struct mdns_host
if (netif_is_up(netif) && mdns_resp_add_netif(netif, hostname, 255) == ERR_OK) { 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; struct netif *netif = netif_list;
while (netif != NULL) { while (netif != NULL) {
if (netif_is_up(netif)) { 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; netif = netif->next;
} }

View File

@@ -350,9 +350,6 @@ env.AddLibrary(
"+<lwip-2.0.2/src/core/ipv6/*.c>", "+<lwip-2.0.2/src/core/ipv6/*.c>",
"+<lwip-2.0.2/src/netif/ethernet.c>", "+<lwip-2.0.2/src/netif/ethernet.c>",
"+<dhcpd/*.c>", "+<dhcpd/*.c>",
# use ethernetif.c from AliOS since it enables netif IGMP flag
"-<lwip-2.0.2/port/ethernetif.c>",
"+<$SDK_DIR/beken378/alios/lwip-2.0.2/port/ethernetif.c>",
], ],
includes=[ includes=[
"+<lwip-2.0.2/port>", "+<lwip-2.0.2/port>",