Hosting a Node.js Server on ESP32 or External Hosting for Wi-Fi and Setpoint Form
Posted: Fri Sep 06, 2024 6:04 am
I want to implement functionality where I fill a form to provide Wi-Fi credentials and setpoints to an ESP32. The form should send the Wi-Fi credentials and setpoints to the ESP32, and it should then connect to the Wi-Fi network.
I’m using a simple RESTful server sample code and created my own custom form that works properly. My doubt is whether I need to host the code externally or on the ESP32's flash by creating a partition table.
If I run my Node.js server on the ESP32, the frontend can send the response to the backend. However, if I host the website on an external platform, would I also need to host the backend server there as well for it to work properly?
On the ESP32, I’ve noticed that when I upload the folder, it runs index.html (frontend code). What are the best ways to achieve this functionality with ESP32? Should I host both the frontend and backend on the ESP32, or is external hosting a better solution?
I’m using a simple RESTful server sample code and created my own custom form that works properly. My doubt is whether I need to host the code externally or on the ESP32's flash by creating a partition table.
If I run my Node.js server on the ESP32, the frontend can send the response to the backend. However, if I host the website on an external platform, would I also need to host the backend server there as well for it to work properly?
On the ESP32, I’ve noticed that when I upload the folder, it runs index.html (frontend code). What are the best ways to achieve this functionality with ESP32? Should I host both the frontend and backend on the ESP32, or is external hosting a better solution?