diff --git a/examples/EthernetAWSIoT/EthernetAWSIoT.ino b/examples/EthernetAWSIoT/EthernetAWSIoT.ino index eabfce1..292bcbc 100644 --- a/examples/EthernetAWSIoT/EthernetAWSIoT.ino +++ b/examples/EthernetAWSIoT/EthernetAWSIoT.ino @@ -93,7 +93,6 @@ void reconnect() { // Serial.println(subscribeTopic[i]); mqtt.subscribe(subscribeTopic[i]); - ethClientSSL.flush(); } Serial.println("Started updateThing "); updateThing(); @@ -161,7 +160,6 @@ void updateThing() void MQTTPublish(const char *topic, char *payload) { mqtt.publish(topic, payload); - ethClientSSL.flush(); Serial.print("Published ["); Serial.print(topic); Serial.print("] "); diff --git a/examples/EthernetMQTT/EthernetMQTT.ino b/examples/EthernetMQTT/EthernetMQTT.ino index 1cb8a4b..5eab3fe 100644 --- a/examples/EthernetMQTT/EthernetMQTT.ino +++ b/examples/EthernetMQTT/EthernetMQTT.ino @@ -51,12 +51,8 @@ void reconnect() { Serial.println("connected"); // Once connected, publish an announcement... client.publish("outTopic","hello world"); - // This is a workaround to address https://github.com/OPEnSLab-OSU/SSLClient/issues/9 - ethClientSSL.flush(); // ... and resubscribe client.subscribe("inTopic"); - // This is a workaround to address https://github.com/OPEnSLab-OSU/SSLClient/issues/9 - ethClientSSL.flush(); } else { Serial.print("failed, rc="); Serial.print(client.state());