9 years, 4 months ago.

sock.send_all returning -1 while I'm connected to the server

Hi everyone

So I've got a little code for my mBed which is linked to the network via the CoolComponents Workshop Board. Everything seems to work, the mBed gets its IP, but I can't communicate with my server. The code of the mBed is here and I use the server provided there.

Now here is what I get in TeraTerm :

Quote:

IP Address is 192.168.0.16 Connecte ! -1Test Envoyé !

So first of all it gives me the address, then tells me it's connected to the socket ("Connecte !") and then writes -1 (which means the sock.send_all() failed). Where is the problem ?

Thank you in advance

Be the first to answer this question.