Code: Select all
esp_err_t err = mdns_init();
if (err != ESP_OK) {
ESP_LOGE(TAG,"MDNS Init failed: %d\n", err);
return;
}
mdns_hostname_set(MDNS_HOST_NAME); //senditfcs
mdns_instance_name_set(MDNS_INSTANCE);
mdns_txt_item_t serviceTxtData[] = {
{"board", "esp32"},
{"path", "/"}
};
ESP_ERROR_CHECK(mdns_service_add("ESP32-WebServer", "_http", "_tcp", 80, serviceTxtData,
sizeof(serviceTxtData) / sizeof(serviceTxtData[0])));
This happens every time unless I have a keep alive header. Why is this happening? Known bug with mDNS? Am I missing a configuration?