I have finally found it:
- Somewhere else my code was using the Client class method active() to find out if there was any pending string to read;
- The connection is really closed after 6 seconds and then active() becomes false.
Now I have put a 1 second timer through an external thread after the first character is read and my code starts to process the incoming string afterwards.
I don't know if there may be any more elegant solution, but it works!
SAM
- Somewhere else my code was using the Client class method active() to find out if there was any pending string to read;
- The connection is really closed after 6 seconds and then active() becomes false.
Now I have put a 1 second timer through an external thread after the first character is read and my code starts to process the incoming string afterwards.
I don't know if there may be any more elegant solution, but it works!
SAM