Page 1 of 1

Ethernet issue

Posted: Sat Oct 06, 2018 4:21 pm
by regis
I have an Ethermega which monitors several switch positions.
The status of these switchs is sent to a webserver.
Clients can connect are read the results.

I'm having trouble with the webserver portion. After several days or minutes the webserver stops working. The rest of the sketch still functions.
Is there a problem with the wiznet W5100 or my code?

Re: Ethernet issue

Posted: Sun Oct 07, 2018 1:44 am
by csconsulting
Probably going to need to see your code.

The wiznet chip has some minor issues, and one of them is an issue with it not closing sockets, and since it only has 4, it can run out of them.

Re: Ethernet issue

Posted: Sun Oct 07, 2018 8:16 pm
by regis
how can i fix this problem with the sockets?

Re: Ethernet issue

Posted: Fri Oct 12, 2018 8:34 am
by csconsulting
Going to have to see your code, it depends on how you are implementing the web server.

Is it a web server that you are trying to code?

I have managed to get a web server, UDP, NTP all working on one sketch, so it can be done relatively easy.