Open tschudin opened 6 years ago
I too would be interested in this functionality.
In particular I am curious if https://github.com/jczic/MicroDNSSrv can be ported to ESP8266 Micropython (where there is no _thread module) by using set_sock_opt() to wire up a handler.
This would mean that, for example, a captive portal could be created which causes all DNS to resolve to 192.168.4.1 or which allows a more memorable and less confusing URI (like http://iot ) to be shared with users of a self-contained wifi-controllable device (versus the complexity of LAN setup and extracting IP addresses to make things addressable as things stand).
I believe this is still missing in latest MicroPython
In this forum post, a patch was presented to enable callbacks for UDP sockets, which would be very helpful for simple UDP-based servers. Will this be included?