<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to AWSIoTClient "TCP_READ_ERROR"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1ca347ad17/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1ca347ad17/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/1ca347ad17/</id><updated>2022-11-21T19:14:56.580000Z</updated><subtitle>Recent posts to AWSIoTClient "TCP_READ_ERROR"</subtitle><entry><title>AWSIoTClient "TCP_READ_ERROR"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1ca347ad17/?limit=25#bdb7" rel="alternate"/><published>2022-11-21T19:14:56.580000Z</published><updated>2022-11-21T19:14:56.580000Z</updated><author><name>trent</name><uri>https://forge.codesys.com/u/trent/</uri></author><id>https://forge.codesys.com7ced6747fae03d58e48c19877264230074c5b27b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;br/&gt;
I have a raspberry pi deployed in the field which is sending MQTT data to AWS using the AWS IoT Core Client SL (1.1.0.0) library.&lt;/p&gt;
&lt;p&gt;For most of the time, this seems to work quite well, but occasionally, the AWSIotClient_0.eError gets a value of "2" which indicates a TCP_READ_ERROR.&lt;/p&gt;
&lt;p&gt;I am trying to understand what makes this happen, and if there is anything I can do to mitigate, was wondering if anyone has come across this before and if so, what they did to rectify?&lt;/p&gt;
&lt;p&gt;The occurrence of this is quite random, the pi can run for weeks without the error occurring, other times it can run for a couple of days before I see it.&lt;/p&gt;
&lt;p&gt;The easiest way I have found to fix it so far is just to remotely reboot the Raspberry Pi, but was wondering if anyone knew an easy way to implement a fix that could just clear this error and continue communicating if it occurs in future? (Or a way to stop it happening in the first place?)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Trent&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>