Creating a reliable TCP Connection | Thales IoT Developer Community
November 17, 2017 - 10:22am, 8149 views
I'm currently writing an application for the EHS6T board that is gathering data via a serial port and outputting over a TCP connection.
Currently I am using a SocketConnection and an OutputsSream as in the examples I have seen, however this doesn't seem to be the correct way of doing it as the OutputStream write function will block indefinately if I lose cell reception.
Am I missing something obvious or is this method not the best approach for my requirements? Obviously in case of losing the connection I want to buffer the data and then send it when I can re-establish the connection.
Thanks in advance.