khoih-prog / EthernetWebServer

This is simple yet complete WebServer library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21/SAMD51, nRF52, STM32, RP2040-based, etc. boards running Ethernet shields. The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32. Coexisting now with `ESP32 WebServer` and `ESP8266 ESP8266WebServer` libraries. Ethernet_Generic library is used as default for W5x00 with custom SPI
MIT License
178 stars 49 forks source link

ESP32 with ENC28j60 slow simple HTTP post request #34

Closed sdrshnptl closed 3 years ago

sdrshnptl commented 3 years ago

Slow HTTP POST request on ENC28j60 with ESP32

ESP32 as web client using enc28j60 to post request on local server working very slow around >2200ms. same request from POSTMAN application takes only 100ms.

Steps to Reproduce

Using generic simple http post example.

Expected behavior

Post request supposed to be completed within <200 ms.

Actual behavior

>2200 ms is consumed by httpclient post request.

Information

Please ensure to specify the following:

khoih-prog commented 3 years ago

Thanks for using the library.

Why you're using bad ENC28J60 while ESP32 has much better WiFi ? There can be some hard-to-find conflict issue when you're using both WiFi/ENC28J60 and I'm not going to support this strange use case.

Also please follow the instructions in Issue: Bug report and post all the information, especially the MRE.

Which ENC28J60 library are you using (UIPEthernet ot EthernetENC) and which version?

I suggest you try

  1. using the UIPEthernet ot EthernetENC examples first, and report to that library.
  2. using plain Arduino IDE, not PIO

I'm not going to spend any time on this,