Skip to content

Commit

Permalink
docs: remove workaround to #9 from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Mar 22, 2021
1 parent d5e9c6d commit f95facc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions examples/EthernetAWSIoT/EthernetAWSIoT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ void reconnect()
{
// Serial.println(subscribeTopic[i]);
mqtt.subscribe(subscribeTopic[i]);
ethClientSSL.flush();
}
Serial.println("Started updateThing ");
updateThing();
Expand Down Expand Up @@ -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("] ");
Expand Down
4 changes: 0 additions & 4 deletions examples/EthernetMQTT/EthernetMQTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f95facc

Please sign in to comment.