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

RP2040-W5500 UdpSendReceive #59

Closed CanGuveren closed 2 years ago

CanGuveren commented 2 years ago

I am using RP20408(Arduino-Mbed core) and W5500. I tried UdpSendReceive but I can't work it.

Start UDPSendReceive on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library on SPI0/SPI
EthernetWebServer v2.2.0
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
[EWS] MISO: 16
[EWS] SCK: 18
[EWS] SS: 17
[EWS] =========================
[EWS] RPIPICO setCsPin: 5
[ETG] W5100::init: no chip :-(
[EWS] =========================
[EWS] Currently Used SPI pinout:
[EWS] MOSI: 3
[EWS] MISO: 4
[EWS] SCK: 2
[EWS] SS: 5
[EWS] =========================
Using mac index = 11
Connected! IP address: 0.0.0.0
khoih-prog commented 2 years ago

Hi @CanGuveren

Please update to the latest mbed_rp2040 core v3.1.1

I've just tested and OK here

Start UDPSendReceive on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet_Generic Library on SPI0/SPI
EthernetWebServer v2.2.0
[EWS] =========== USE_ETHERNET_GENERIC ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
[EWS] MISO: 16
[EWS] SCK: 18
[EWS] SS: 17
[EWS] =========================
[EWS] RPIPICO setCsPin: 17
[EWS] =========================
[EWS] Currently Used SPI pinout:
[EWS] MOSI: 19
[EWS] MISO: 16
[EWS] SCK: 18
[EWS] SS: 17
[EWS] =========================
Using mac index = 7
Connected! IP address: 192.168.2.113

Starting connection to server...
Listening on port 1883
Sireevenkat commented 2 years ago

I am also facing same issue as @CanGuveren mentioned. I am getting IP address :0.0.0.0.I am using ESP32 and Arduino UNO boards with W5500 Ethernet shield. How can I resolve this issue