Creating a smart socket and a custom web application for it

lorencelacks

Aug 21, 2024
1
Joined
Aug 21, 2024
Messages
1
Tl;dr - Working on smart socket for an electronics course, how do I get ESP32s to send data to a web server running on a laptop and where do I even begin when creating a custom web server/application? What APIs should I look into maybe using? I initially saw some using Python and Flask but would like to know if you guys know other approaches I should look into.

At the moment I'm working on creating a smart socket with the ability to measure power consumption and remote control through BLYNK. Now, my problem is that I want to try and move all that functionality to a custom application or website for finer control over things like adding my own functionality, UI, and trying to learn as much as I can.

I would really appreciate if someone could give me some pointers on how I might be able to implement this. Originally, I wanted to use the ESP32 to run the webserver but I feel like the performance might suffer somewhat and I'd like to try running the server as a dedicated entity either on a Windows machine or something like a Pi.

A few told me that ESPHome might fulfill my needs but I'm also looking to hopefully create the website from scratch to customize it's UI or functionality if possible though I might just resort to ESPHome if it's too much.

I'd really appreciate any help or pointers to guides or resources that might help. Thank you!
 

danadak

Feb 19, 2021
1,063
Joined
Feb 19, 2021
Messages
1,063
The ESP32 is dual core, you can run main() on one, the server on the other if
you choose.

Take a look at TUNIOT to do the coding, example server :

1724259498943.png


Regards, Dana.
 
Top