2#if defined(USE_HOST) && defined(USE_MDNS)
14#ifdef USE_MDNS_STORE_SERVICES
21 char *mac_ptr =
nullptr;
22 char *cfg_ptr =
nullptr;
uint32_t get_config_hash()
Get the config hash as a 32-bit integer.
void on_shutdown() override
char config_hash_str_[CONFIG_HASH_STR_SIZE]
Fixed buffer for config hash hex string (only needed when services are stored)
void compile_records_(StaticVector< MDNSService, MDNS_SERVICE_COUNT > &services, char *mac_address_buf, char *config_hash_buf)
char mac_address_[MAC_ADDRESS_BUFFER_SIZE]
Fixed buffer for MAC address (only needed when services are stored)
StaticVector< MDNSService, MDNS_SERVICE_COUNT > services_
void get_mac_address_into_buffer(std::span< char, MAC_ADDRESS_BUFFER_SIZE > buf)
Get the device MAC address into the given buffer, in lowercase hex notation.
char * format_hex_to(char *buffer, size_t buffer_size, const uint8_t *data, size_t length)
Format byte array as lowercase hex to buffer (base implementation).
Application App
Global storage of Application pointer - only one Application can exist.