finally. its working,
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
ESP32 as stanalone Webserver
Re: ESP32 as stanalone Webserver
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.
What is necessary before calling captdnsInit() on our app_main() function?
Thanks much in advance.
Re: ESP32 as stanalone Webserver
@cornelis, thank you for sharing your code. I shall git it a try. Cheers
-
- Posts: 26
- Joined: Thu Nov 03, 2016 9:06 pm
Re: ESP32 as stanalone Webserver
@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.
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
@mjmorrison were you ever able to get copercini’s code to work?
Who is online
Users browsing this forum: Gaston1980 and 70 guests