Hi all,
I have a problem with some code where I use two socket clients.
One of them connects to a server external, I receive data from this server and send data (or in theory they are sent, I can't check it).
On the other hand, I have another client connected to a different server, this one is my property. In the latter, data is sent, which is received for a few seconds, but then nothing is received, although the teensy seems to send it, since no error appears, and I also have this code
that return the total number of correct bytes, but nothing reaches the server.
It is not a problem on the server side, since I have tried with other devices and everything works OK, so I deduce that the problem is on the teensy side.
Additionally I have noticed that if I perform a
the other connection (the one on the external server) starts to fail and disconnects, I don't know why.
This is my clients definitions:
Any idea?
I have a problem with some code where I use two socket clients.
One of them connects to a server external, I receive data from this server and send data (or in theory they are sent, I can't check it).
On the other hand, I have another client connected to a different server, this one is my property. In the latter, data is sent, which is received for a few seconds, but then nothing is received, although the teensy seems to send it, since no error appears, and I also have this code
C++:
size_t bytessend = socketClient.print((const char *)buffer);
It is not a problem on the server side, since I have tried with other devices and everything works OK, so I deduce that the problem is on the teensy side.
Additionally I have noticed that if I perform a
C++:
socketClient.flush();
This is my clients definitions:
C++:
EthernetClient socketClient;
EthernetClient ntripClient;
Any idea?