arduino-libraries / Ethernet

Ethernet Library for Arduino
http://arduino.cc/
257 stars 262 forks source link

w5500 only speaks if spoken to #211

Closed gigaj0ule closed 1 year ago

gigaj0ule commented 1 year ago

Well, I am really puzzled.

I have a situation where EthernetClient.write('\0'); (or anything else) only sends data when my computer sends data to the w5500 too

otherwise, the act light doesn't blink when I call .write()

I can't find any information elsewhere describing this bug or what I could have done wrong

gigaj0ule commented 1 year ago

Oh how silly,

I needed to use EthernetServer().write() to make a device -> host transaction, not EthernetClient().write()

It only looked like my connection was working normally because my program would periodically ask the w5500 for other unrelated data. In the absence of host -> device communication, the write() call would just fail silently.