2#if defined(USE_RP2040) && defined(USE_MDNS)
9#include <ESP8266mDNS.h>
19 for (
const auto &service : this->
services_) {
24 auto *proto = service.proto.c_str();
25 while (*proto ==
'_') {
28 auto *service_type = service.service_type.c_str();
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, record.key.c_str(),
36 const_cast<TemplatableValue<std::string> &
>(record.value).value().c_str());
void on_shutdown() override
std::vector< MDNSService > services_
Providing packet encoding functions for exchanging data with a remote host.
void IRAM_ATTR HOT delay(uint32_t ms)