ESP32 #14: HTTPS Secure Webserver and WiFi GPIO Remote Control

preview_player
Показать описание
Build your own HTTPS (TLS v1.2 using openssl) Webserver with the #ESP32 to remotely control GPIO Ports or some Bright LEDs with the use of a MOSFET.

SSL HowTo

OpenSSL

Generate fresh Keys:

Mosfet

Sourcecode
Рекомендации по теме
Комментарии
Автор

usually 0 is off and 1 is on for coding standards. Also while it is a good project that does not turn on and off frequently and needs to remember default flags, constantly writing values to your flash every time you turn a light on and off, will eventually wear out the flash. Consider writing what values you would like to have in non volatile upon and unexpected reboot, store them in program memory and manipulate the flags from there. Its also bad practice to have items power on upon bootup and usually default to off but this project does fill a niche for flags that do need to survive a power cycle. Thank you for sharing your hard work with the community:)

ytfp
Автор

Thank you very much for this very helpful project.

Just a minor annotation to the MOSFET: most IRLR3103 will work with 3.3V input voltage, especially with this low load. But this is not guaranteed. "Gate Threshold Voltage" means: under that voltage, the I_DS is max 250µA as stated in the datasheet.
If you want to have a guaranteed max RDS_On you have to look into "RDS(on) Static Drain-to-Source On-Resistance": 24mOhm @4V. and ID 24A. With 3.3V nothing is guaranteed and you rely on the oversizing. Which in many or even most cases will work.
The IRML2502 guarantees 90mOhm @2.5V and 3.6A
If you want to use a TO220 one go for the IRF3708: 29mOhm @2.8V and 7.5A

juergenseekircher
Автор

Having problems building this with the latest esp.py from Expressif. Getting errors like: object called socket is not a function or function pointer socket = socket(AF_INET, SOCK_STREAM, 0), in openssl_server.c 256:14. Just wondered if you had tried to update this project recently.

cthoadmin
Автор

omg another one with the really creepy gloves....

lezbriddon
Автор

i have an error called
object 'socket' is not a function or function pointer
socket = socket(AF_INET, SOCK_STREAM, 0);

how to fix?

duytoannguyen
Автор

great work sir carry on please continue uploading videos

mahmoudgattuzo
Автор

very slow update speed, how it change?

ganstagirs
Автор

I loose connection to ESP after a while, an hardware Problem?

herrbanane
Автор

Sorry for newbie question, but how do you get the certificates files on the device in your example?

caroman
Автор

How did you add the letsencrypt certs. When I copy letsencrypt.cer over cacert.pem and letsencrypt.key over cakey.pem. I get a
esp32 console:
[0;32mI (30529096) Openssl_demo: SSL server accept client
[0;32mI (30530206) Openssl_demo: failed[0m

letsencrypt gives me.
Your cert *.cer
Your cert key *.key
The intermediate CA cert ca.cer
And the full chain certs fullchain.cer

I used acme.sh to get the certs. I have a domain name matching to my internet address that the FW sends to a solaris zone where I ran the script
./acme.sh --issue -d esp32.foobar.com -w /export/home/web
Then I use split DNS to have esp32.foobar.com match the IP of the esp32 when accessed from a local lan

cuhrhammer
Автор

Will this work in the arduino environment, or is eclipse necessary?

eichenbrain
Автор

I have to say, very nice but the ESP32 seems a little overkill as the much cheaper ESP8266 would do the same thing?

PeterScargill
Автор

Is this is the limitation, ??, the gpio's would on/off if the esp32 and your browser is at same network. Different networks causing timed out problem. ??

sajeelahmed
Автор

why do you call a new page for each action? can't you do it from the same URL? Let's say you like to increase a value by pressing a value to control the temperature. If you use a specific url to do this, you will increase the value either by refreshing the page.

goozlo
Автор

Thanks for this video, I try to compile this firmware and try on Esp32 dev board, it appear that it take very long the connect the device and also take very long to change the status of gpio, in debug window, it take very long to print the debug information,

edwardliu
Автор

I am stuck by using this tutorial. Simple i flashed the code in my esp32 and type the ip addr of my eps32 on google webpage and press enter. It will give me this "your connection is not private". any help??

sajeelahmed
Автор

Man kann dein Denglisch richtig raushören 😂 aber gutes Video 👍

flasergames
Автор

Have you tried it on WAN(wide area network) ??

sajeelahmed
Автор

how to change the logo? and how can I change the page design?

usBong.
Автор

Where did you get your esp32? i ordered my on ebay but it never came.

MrHD