Re: ESP32 as stanalone Webserver
Posted: Wed Feb 15, 2017 7:32 pm
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
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