File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ void reconnect()
9393 {
9494// Serial.println(subscribeTopic[i]);
9595 mqtt.subscribe (subscribeTopic[i]);
96- ethClientSSL.flush ();
9796 }
9897 Serial.println (" Started updateThing " );
9998 updateThing ();
@@ -161,7 +160,6 @@ void updateThing()
161160void MQTTPublish (const char *topic, char *payload)
162161{
163162 mqtt.publish (topic, payload);
164- ethClientSSL.flush ();
165163 Serial.print (" Published [" );
166164 Serial.print (topic);
167165 Serial.print (" ] " );
Original file line number Diff line number Diff line change @@ -51,12 +51,8 @@ void reconnect() {
5151 Serial.println (" connected" );
5252 // Once connected, publish an announcement...
5353 client.publish (" outTopic" ," hello world" );
54- // This is a workaround to address https://github.com/OPEnSLab-OSU/SSLClient/issues/9
55- ethClientSSL.flush ();
5654 // ... and resubscribe
5755 client.subscribe (" inTopic" );
58- // This is a workaround to address https://github.com/OPEnSLab-OSU/SSLClient/issues/9
59- ethClientSSL.flush ();
6056 } else {
6157 Serial.print (" failed, rc=" );
6258 Serial.print (client.state ());
You can’t perform that action at this time.
0 commit comments