Webduino icon indicating copy to clipboard operation
Webduino copied to clipboard

W5500 compatibility

Open agnunez opened this issue 9 years ago • 2 comments

Hi, Using Webduino for years now without issue, but there was one UNO with hw problem and was replaced by a new one with W5500 ethernet shield, and Webduino does not work. Any news about Webduino compatibility with Wiznet W5500 ethernet chip/shield? Thanks

agnunez avatar Feb 23 '16 19:02 agnunez

I've no personal experience with the W5500 and haven't really worked on this code for a few years. I'd welcome a compatibility patch, but don't plan on doing that myself.

unwiredben avatar Feb 24 '16 03:02 unwiredben

I solved removing this line: https://github.com/sirleech/Webduino/blob/master/WebServer.h#L32

You will need to include Ethernet.h or Ethernet2.h in your sketch, see below example:

#if defined BUILD_COMM_ETH  
  #define WEBDUINO_FAVICON_DATA "" // no favicon
  #include <SPI.h>
  #include "avr/pgmspace.h" // new include
  #include <Ethernet.h>
//  #include <Ethernet2.h>
  #include "WebServer.h"
#endif

t30 avatar Jun 27 '16 17:06 t30