2#if defined(USE_RP2040) && defined(USE_MDNS)
10#include <ESP8266mDNS.h>
14static void register_rp2040(MDNSComponent *, StaticVector<MDNSService, MDNS_SERVICE_COUNT> &services) {
17 for (
const auto &service : services) {
22 auto *proto = MDNS_STR_ARG(service.proto);
23 while (*proto ==
'_') {
26 auto *service_type = MDNS_STR_ARG(service.service_type);
27 while (*service_type ==
'_') {
30 uint16_t port =
const_cast<TemplatableValue<uint16_t> &
>(service.port).value();
31 MDNS.addService(service_type, proto, port);
32 for (
const auto &record : service.txt_records) {
33 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 setup_buffers_and_register_(PlatformRegisterFn platform_register)
void IRAM_ATTR HOT delay(uint32_t ms)
Application App
Global storage of Application pointer - only one Application can exist.