We will now set up a weatherweb project. Here, we will receive information about temperature and humidity via a browser. If you want to get the latest information from the ESP32 board, you will have to open a new request to the ESP32 board manually. Let's now automate this activity, as follows:
- To perform an auto-refresh on HTML, use http-equiv="refresh" on the <meta> tag. We can modify our weatherweb project by declaring the WEATHER_TXT_REF variable:
static const char *WEATHER_TXT_REF =
"<html>"
"<head><title>%s</title>"
"<meta http-equiv=\"refresh\" content=\"5\" >"
"</head>"
"<body>"
"<p>Temperature: %d </p>"
"<p>Humidity: %d %%</p>"
"</body>"
"<...