Added logURL to MDNS broadcast

Broadcast as "logURL" only if Web Logging is enabled.
This commit is contained in:
Gregg 2022-03-05 22:34:30 -06:00
parent f37889f8da
commit 33042f191e
1 changed files with 2 additions and 0 deletions

View File

@ -563,6 +563,8 @@ void Span::checkConnect(){
}
if(webLog.isEnabled){
mdns_service_txt_item_set("_hap","_tcp","logURL",webLog.statusURL.c_str()+4); // Web Log Enabled (info only - NOT used by HAP)
Serial.printf("Web Logging enabled at http://%s.local:%d%swith max number of entries=%d\n\n",hostName,tcpPortNum,webLog.statusURL.c_str()+4,webLog.maxEntries);
webLog.initTime();
}