Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Data refresh #170

Open
Harishferose opened this issue Jan 12, 2023 · 0 comments
Open

Dynamic Data refresh #170

Harishferose opened this issue Jan 12, 2023 · 0 comments

Comments

@Harishferose
Copy link

Harishferose commented Jan 12, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant