Re: Simple TCP server
Posted: Sat Nov 11, 2017 12:04 pm
Your code is not like the previous post's in one very significant way; it uses a loop once the connection is established. Yours thrashes the system each iteration of loop by starting a new connection and also doing prints to serial out which is very onerous on the system and most likely causing the problem, such as out of resources, timeouts, etc. But that is just a guess; I would say for certainty however, that it is not a good method for establishing and using a connection and would advise against it, even if it proves not to be the cause of your actual problem