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 =
"<meta http-equiv=\"refresh\" content=\"5\" >"
"<p>Temperature: %d </p>"
"<p>Humidity: %d %%</p>"