Hi! I’m having an issue interfacing to the W5100. I have had W5500 support working great for years, and I had assumed that W5100 would work just by compiling against the W5100 drivers.
The W5100 does seem to work, however when closing a socket the close command hangs for 30 seconds - everything else works.
Here’s the code I’m using:
// try and close gracefully disconnect((uint8_t)sckt); uint8_t status; while ((status=getSn_SR((uint8_t)sckt)) != SOCK_CLOSED && waiting_for_less_than_one_second) ; // if that didn't work, force it if (status != SOCK_CLOSED) closesocket((uint8_t)sckt);
So very similar to other WIZnet examples as far as I can tell, and it works fine on the W5500.
When working as a server, this code works great and handles sockets without delay. It’s only when acting as a client that there is the problem.
Is there a flag or something I’m not setting up properly? Full code is here: