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

Support WT32-ETH01 (ESP32 / LAN8720) #24

Closed BorgMcz closed 3 years ago

BorgMcz commented 3 years ago

Good day,

I would like to ask if it would be possible to add support for the following board. https://www.makeuseof.com/this-6-esp32-board-is-a-diy-smart-home-dream/ https://www.seeedstudio.com/Ethernet-module-based-on-ESP32-series-WT32-ETH01-p-4736.html https://github.com/Aircoookie/WLED/issues/1027#issuecomment-750540512

It is a very compact and cheap design. PHY support is implemented directly into the ESP32 SDK.

khoih-prog commented 3 years ago

Thank for your interest in this library.

As you know, the WT32-ETH01 (ESP32 / LAN8720) is using special and not fully compatible AT-commands to control ESP32-WiFi and Ethernet. This is very different from what is supported by this EthernetWebServer library. Therefore, this library will never support that type of shield.

The closest libraries you can use for WiFi, hopefully working OK, are

  1. ESP8266_AT_WebServer
  2. ESP_AT_WiFiManager
  3. ESP_AT_Lib

I'll try to ask SeeedStudio to send or buy some samples of this interesting WiFi+Ethernet shield to see if I can write a special library (similar to those AT-command libraries) for them. But I can't promise anything as I'm so busy right now, just in the long wish list.

BorgMcz commented 3 years ago

Good day,

The use of this PHY chip is directly supported by the ESP and its SDK library. A simple example of activation can be viewed here.

I ordered two pieces so I could try, now I'm waiting for delivery. This board has great potential.

https://www.letscontrolit.com/forum/viewtopic.php?p=49844#p49844

BorgMcz commented 3 years ago

I already have the module in my hand. I managed basic operations such as sending an email and the like. Now I would like to use your interface to work with a web server. Here I attach the tested settings for this hardware.

`/*

ldijkman commented 3 years ago

maybe for someone some help NOT another century wired phone AT DT modem commands ;-) but arduino ide examples for WT32-ETH01

https://github.com/ldijkman/WT32-ETH01-LAN-8720-RJ45-

khoih-prog commented 3 years ago

@ldijkman

Thanks for your repo which will help many users.

I'll definitely add the EthernetWebServer support to this interesting WT32-ETH01 board when I receive (still somewhere)

Regards,

khoih-prog commented 3 years ago

Hi all,

FYI, the support for good WT32-ETH01 board has been provided by the new library WebServer_WT32_ETH01, which is just released today.

Cheers,

khoih-prog commented 3 years ago

Hi @ldijkman

Thanks for you good library which helps and saves me a lot of time to start with the new WT32-ETH01 board.

Best Regards,

SurfGargano commented 2 years ago

In the file webServer_WT32_ETH01_Impl.h there are some cases like case ARDUINO_EVENT_ETH_START: When I start the compilation via PlatformIO some errors are displayed that ARDUINO_EVENT_ETH_START (and other) not defined. Has I include some other files ?

khoih-prog commented 2 years ago

Please put the issue in the correct library WebServer_WT32_ETH01 next time.


PIO is using ESP32 core v1.0.6 now, the current library version is using v2.0.0+ by default.

You have to either

  1. Using Arduino IDE and ESP32 core v2.0.1
  2. Using PIO and library version v1.2.0-. Read Important notes
  3. If using library version v1.3.0, add in your code,
// Uncomment to use ESP32 core v1.0.6-
#define USING_CORE_ESP32_CORE_V200_PLUS     false
ldijkman commented 2 years ago

Hi @ldijkman

Thanks for you good library which helps and saves me a lot of time to start with the new WT32-ETH01 board.

Best Regards,

Haha i did not write a library just a litle code example i think i like your espasync wifimanager with extra input fields for mdns local url name and i/o config ESPAsync_WiFiManager/examples/Async_AutoConnectWithFSParameters/Async_AutoConnectWithFSParameters.ino For getting me started Easy home automation with mdns logical hostname (no hard to lookup and remember ip numbers) Http://living.local http://kitchen.local etcetera with auto scanned linked list of devices in network on every webpage advanced? timed setting (well i think much better as most) https://jsfiddle.net/luberth/ow3zceyn/show/ https://github.com/ldijkman/Hey_Electra