Search found 5 matches

by pscott
Mon Mar 28, 2022 3:57 pm
Forum: ESP32 Arduino
Topic: Unable to Connect to HTTP Server
Replies: 0
Views: 2860

Unable to Connect to HTTP Server

I am trying to modify the ESP32_Async_Demo example from https://github.com/ayushsharma82/AsyncElegantOTA/tree/master/examples/ESP32_Async_Demo to work over ethernet instead of WiFi. I am able to compile and upload the program and ping the IP address, but when I try to access the web page, I get the ...
by pscott
Wed Mar 09, 2022 3:07 pm
Forum: ESP32 Arduino
Topic: ESP32 crashes when starting web server
Replies: 7
Views: 6582

Re: ESP32 crashes when starting web server

Thank you for answering my questions, but can you provide more detail in your answers? I'm unfamiliar with all of this netif and lwip stuff.

All I need to do is call the netif_add function? I'm not sure what values I would enter for the State, Init, and Input parameters of the netif_add function.
by pscott
Tue Mar 08, 2022 4:49 pm
Forum: ESP32 Arduino
Topic: ESP32 crashes when starting web server
Replies: 7
Views: 6582

Re: ESP32 crashes when starting web server

I added the following line in my setup function:

Code: Select all

tcpip_init(NULL, NULL);
Now the ESP32 does not crash, but I am unable to access the web server using the device's IP address. Any ideas?
by pscott
Tue Mar 08, 2022 2:33 pm
Forum: ESP32 Arduino
Topic: ESP32 crashes when starting web server
Replies: 7
Views: 6582

Re: ESP32 crashes when starting web server

I don't think I am calling the tcpip_init function. Should i be? Here is the code for the server.begin function where my program crashes: void AsyncServer::begin(){ if(_pcb) { return; } if(!_start_async_task()){ log_e("failed to start task"); return; } int8_t err; _pcb = tcp_new_ip_type(IPADDR_TYPE_...
by pscott
Mon Mar 07, 2022 9:55 pm
Forum: ESP32 Arduino
Topic: ESP32 crashes when starting web server
Replies: 7
Views: 6582

ESP32 crashes when starting web server

Hi, I'm using PlatformIO IDE to program a WeMos D1 Mini ESP32. My goal is for the ESP32 to be able to send/receive UDP packets via ethernet, but I also need to be able to update the firmware with a web updater OTA. I was able to achieve this while using Wi-Fi, but not while using ethernet. Here is m...