TheMemberFormerlyKnownAsAWOL:
Well, not exactly, because you’re advancing the start of the “array” each time through the loop, but you don’t have to do that.
Okay, I’m starting to get to it, but I’m getting some errors…
String rot47(String p)
{
while (p[0]) {
if (p >= '!' && p <= 'O')
p = ((p + 47) % 127);
else if (p >= 'P' && p <= '~')
p = ((p - 47) % 127);
p++;
}
return p;
}
Do you want help with those errors? If so, please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.
Whilst it can use strings the ESP environment is awash with Strings including the Espressif ESP32 webserver library on which I spent/wasted some time on wondering why it did not work when I used strings to build a web page
UKHeliBob:
Whilst it can use strings the ESP environment is awash with Strings including the Espressif ESP32 webserver library on which I spent/wasted some time on wondering why it did not work when I used strings to build a web page
I'm not using ESP32, I'm on ESP8266 and did some big project with like four A4 pages in HTML + Bootstrap included externally with String, and it's working without any issues.
groundFungus:
Do you want help with those errors? If so, please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.
Also post the latest code so we can keep up.
The error is:
converting to 'const String' from initializer list would use explicit constructor 'String::String(char)'