ESP8266WebServer.h and variables in string
Posted: Thu Sep 21, 2017 4:06 pm
I am hoping someone can help me out i am working on a peice of code on a nodmcu board using ide however when ever i place a variable in the webpage string i don't get the contents of the variable here is a samble of my code
webPage += "<a href=\"/b2on\"\">On LED2</a>";
webPage += "<a href=\"/b2off\"\"> Off LED2</a>";
webPage += WiFi.localIP();
webPage += "<br>";
webPage += "<a href=\"/b2on\"\">On LED2</a>";
webPage += "<a href=\"/b2off\"\"> Off LED2</a>";
webPage += WiFi.localIP();
webPage += "<br>";