esp32_https_server icon indicating copy to clipboard operation
esp32_https_server copied to clipboard

Dynamic Data refresh

Open Harishferose opened this issue 2 years ago • 0 comments

We are having a web server, On the dashboard page trying to fetch the data dynamically.

Using the HTTPS server, Not able to trigger a function to read the data from a defined global variable.

To achieve this tried two approaches: Approach 1: Tried to increment the value in the loop and fetched the data in a node. But the data is updated only when the page is refreshed not sure how to update a dynamic value inside the registered node.

Approach 2: Try to integrate an ajax call to fetch the data from the dynamic value but I can't find a way to call an internal function to fetch the data and can't find any examples for that.

On the normal web server can able to call a function using an ajax API call to fetch the data dynamically but an HTTP function (void handleEcho(HTTPRequest * req, HTTPResponse * res);) is not able to fetch the data.

It always prints the data as an HTML page but we need the response data to update in the registered node.

Trying to achieve this HTTP example with an HTTPS server (https://circuits4you.com/2018/11/20/web-server-on-esp32-how-to-update-and-display-sensor-values/)

ESP32 Module Please provide the specifications of your module

ESP32-ETHERNET-KIT-VE

  • RAM/PSRAM: 8 MB
  • Flash Size: 4 MB

Harishferose avatar Jan 12 '23 09:01 Harishferose