2#if defined(USE_LIBRETINY) && defined(USE_MDNS)
14static void register_libretiny(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)
Application App
Global storage of Application pointer - only one Application can exist.