Page 3 of 3

Re: ESP32 as stanalone Webserver

Posted: Wed Feb 15, 2017 7:32 pm
by Cornelis
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

Re: ESP32 as stanalone Webserver

Posted: Fri Feb 17, 2017 8:07 am
by seopyoon
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.

Re: ESP32 as stanalone Webserver

Posted: Fri Feb 17, 2017 8:35 am
by Cornelis
hi seopyoon,

I put a example in GitHub

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

Re: ESP32 as stanalone Webserver

Posted: Mon Feb 20, 2017 1:45 am
by seopyoon
@cornelis, thank you for sharing your code. I shall git it a try. Cheers

Re: ESP32 as stanalone Webserver

Posted: Wed Mar 15, 2017 8:24 pm
by mjmorrison
@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.

Re: ESP32 as stanalone Webserver

Posted: Wed Oct 30, 2019 5:09 am
by Involute
@mjmorrison were you ever able to get copercini’s code to work?