From f95facc2545736df78a28e1abd00b6a1afb1de79 Mon Sep 17 00:00:00 2001 From: Noah Laptop Date: Sun, 21 Mar 2021 20:11:50 -0700 Subject: [PATCH] docs: remove workaround to #9 from examples --- examples/EthernetAWSIoT/EthernetAWSIoT.ino | 2 -- examples/EthernetMQTT/EthernetMQTT.ino | 4 ---- 2 files changed, 6 deletions(-) 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());