Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Shoeb
#84313 Following code doesn't show any compile error. Upload to ESP module is also successful.
But after successful upload, ESP module continues restating.
If I remove snprintf function it is ok.

void html_page(){

int sec = millis() / 1000;
int min1 = sec / 60;
int hr = min1 / 60;

const char dataHTML[]=R"RAW(
<html>
<body>
<p>Uptime: %d:%d:%d</p>
</body>
</html>
)RAW";
snprintf(page,100,dataHTML,sec,min1,hr);
Serial.println(page);
server.send(200, "text/html", page);
}
User avatar
By RichardS
#84336 I would expect page[1000] to work, try commenting out serial.Print