2#if defined(USE_RP2040) && defined(USE_MDNS)
9#include <ESP8266mDNS.h>
19 for (
const auto &service : this->
services_) {
24 auto *proto = MDNS_STR_ARG(service.proto);
25 while (*proto ==
'_') {
28 auto *service_type = MDNS_STR_ARG(service.service_type);
29 while (*service_type ==
'_') {
32 uint16_t port =
const_cast<TemplatableValue<uint16_t> &
>(service.port).value();
33 MDNS.addService(service_type, proto, port);
34 for (
const auto &record : service.txt_records) {
35 MDNS.addServiceTxt(service_type, proto, MDNS_STR_ARG(record.key), MDNS_STR_ARG(record.value));
void on_shutdown() override
StaticVector< MDNSService, MDNS_SERVICE_COUNT > services_
Providing packet encoding functions for exchanging data with a remote host.
void IRAM_ATTR HOT delay(uint32_t ms)