2#if defined(USE_RP2040) && defined(USE_MDNS)
10#include <ESP8266mDNS.h>
16#ifdef USE_MDNS_STORE_SERVICES
20 StaticVector<MDNSService, MDNS_SERVICE_COUNT> services;
26 for (
const auto &service : services) {
31 auto *proto = MDNS_STR_ARG(service.proto);
32 while (*proto ==
'_') {
35 auto *service_type = MDNS_STR_ARG(service.service_type);
36 while (*service_type ==
'_') {
39 uint16_t port =
const_cast<TemplatableValue<uint16_t> &
>(service.port).value();
40 MDNS.addService(service_type, proto, port);
41 for (
const auto &record : service.txt_records) {
42 MDNS.addServiceTxt(service_type, proto, MDNS_STR_ARG(record.key), MDNS_STR_ARG(record.value));
const std::string & get_name() const
Get the name of this Application set by pre_setup().
void on_shutdown() override
void compile_records_(StaticVector< MDNSService, MDNS_SERVICE_COUNT > &services)
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)
Application App
Global storage of Application pointer - only one Application can exist.