← index #5475PR #4951
Related · high · value 4.180
QUERY · ISSUE

Feature Request - mDNS on esp8266

openby diginfoopened 2019-12-29updated 2024-01-28
port-esp8266

I see that it was added to the ESP32 (https://github.com/micropython/micropython/pull/4951)

Is it possible to also add it to the esp8266 port ??

CANDIDATE · PULL REQUEST

esp32: Add support for mDNS queries and responder.

closedby dpgeorgeopened 2019-07-26updated 2021-01-10
port-esp32

This adds support to the esp32 for mDNS queries and a responder. See discussion in #4912.

For queries do: socket.getaddrinfo('device.local', 123)

The responder is automatically enabled, with default hostname "esp32.local".

TODO: work out a way to specify the hostname. Probably need a new config option wlan.config(mdns_hostname=...). Or could reuse wlan.config(dhcp_hostname=...). Even though there are different concepts of hostnames it'd probably be a good idea to unify them into a single config, eg wlan.config(hostname=...).

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied