We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71e1c9 commit fcd214bCopy full SHA for fcd214b
libraries/ESP8266mDNS/examples/LEAmDNS/mDNS_ServiceMonitor_v2/mDNS_ServiceMonitor_v2.ino
@@ -204,7 +204,9 @@ void handleHTTPRequest() {
204
205
IPAddress ip = server.client().localIP();
206
String ipStr = ip.toString();
207
- String s = "<!DOCTYPE HTML>\r\n<html><h3><head>Hello from ";
+ String s;
208
+ s.reserve(200 /* + service listed */);
209
+ s = "<!DOCTYPE HTML>\r\n<html><h3><head>Hello from ";
210
s += WiFi.hostname() + ".local at " + server.client().localIP().toString() + "</h3></head>";
211
s += "<br/><h4>Local HTTP services are :</h4>";
212
s += "<ol>";
0 commit comments