|
DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
|
mDNS / DNS-SD advertisement implementation (DETWS_ENABLE_MDNS). More...
#include "mdns_service.h"Go to the source code of this file.
Functions | |
| bool | detws_mdns_begin (const char *hostname, uint16_t http_port) |
| Start mDNS responder and advertise an HTTP service. | |
mDNS / DNS-SD advertisement implementation (DETWS_ENABLE_MDNS).
Uses the ESP-IDF mdns component directly (not the Arduino ESPmDNS wrapper) so the only external dependency stays the base SDK + mbedTLS.
Definition in file mdns_service.cpp.
| bool detws_mdns_begin | ( | const char * | hostname, |
| uint16_t | http_port = 80 |
||
| ) |
Start mDNS responder and advertise an HTTP service.
Call once after the WiFi link is up (wifi_ready()) and after begin(). The device becomes reachable at <hostname>.local and advertises _http._tcp on http_port.
| hostname | Host label without the .local suffix (e.g. "mydevice"). |
| http_port | TCP port the HTTP server listens on (default 80). |
Definition at line 49 of file mdns_service.cpp.