Im trying to add information to a webpage. Im going down the route of processor and placeholders.
A basic item i am trying to output onto the webpage is ETH.locaIP for example.
I am trying to convert ETH.localIP to a string using this
String IPx;
IPx = ETH.localIP().toString();
then was hoping to use this:
processor(const String& var){
if(var == "IPTEST"){
return IPx;
}}
Then use %IPTEST% in the HTML.
I am using PROGMEM = R"rawliteral method for all webpages
The error i get is
IPx = ETH.localIP().toString();
^~~
exit status 1
Compilation error: 'IPx' does not name a type
Is there another method and where am i going wrong? once i can handle one i can deal with the rest.