ESP32 as stanalone Webserver

Cornelis
Posts: 9
Joined: Wed Feb 08, 2017 7:21 pm

Re: ESP32 as stanalone Webserver

Postby Cornelis » Wed Feb 15, 2017 7:32 pm

finally. its working, :D :D

in the routine captdnsRecv(….

look for
//tcpip_adapter_get_ip_info(TCPIP_ADAPTER_IF_ETH, &info);

and change to
tcpip_adapter_get_ip_info(TCPIP_ADAPTER_IF_AP, &info);

does matter what http request you send you will get the
WEB page you have setup in your ESP32

This was the first step of my experiment !

Next step, setup the ESP in AP and STA mode.

Any device should be able to connect to the AP, but the only thing what
will work is a http request to the ESP32 WEB server.

On the WEB page I will put a drop down menu where the
connected device can choose a name, and after pushing „send“
a message will go trough the STA into the internal network to
the person who is selected to let him know that some is calling at the gate.

Cornelis

seopyoon
Posts: 23
Joined: Thu Dec 08, 2016 8:25 am

Re: ESP32 as stanalone Webserver

Postby seopyoon » Fri Feb 17, 2017 8:07 am

Could you provide a little more information on how I could run this??
What is necessary before calling captdnsInit() on our app_main() function?

Thanks much in advance.

Cornelis
Posts: 9
Joined: Wed Feb 08, 2017 7:21 pm

Re: ESP32 as stanalone Webserver

Postby Cornelis » Fri Feb 17, 2017 8:35 am

hi seopyoon,

I put a example in GitHub

https://github.com/cornelis-61/esp32_Captdns

seopyoon
Posts: 23
Joined: Thu Dec 08, 2016 8:25 am

Re: ESP32 as stanalone Webserver

Postby seopyoon » Mon Feb 20, 2017 1:45 am

@cornelis, thank you for sharing your code. I shall git it a try. Cheers

mjmorrison
Posts: 26
Joined: Thu Nov 03, 2016 9:06 pm

Re: ESP32 as stanalone Webserver

Postby mjmorrison » Wed Mar 15, 2017 8:24 pm

@Cornelis awesome thing you built!

On a similar note I am trying to run copercini's arduino flavored version here: https://github.com/copercini/esp32-iot- ... portal.ino

No dice however. I will do a bit more digging but your code was a nice sanity check!

I'm really after the webform and saving the result to flash, so next up is getting that running.

Involute
Posts: 10
Joined: Mon Oct 14, 2019 3:22 am

Re: ESP32 as stanalone Webserver

Postby Involute » Wed Oct 30, 2019 5:09 am

@mjmorrison were you ever able to get copercini’s code to work?

Who is online

Users browsing this forum: Baidu [Spider] and 381 guests