docs: remove workaround to #9 from examples

This commit is contained in:
Noah Laptop 2021-03-21 20:11:50 -07:00
parent d5e9c6d1aa
commit f95facc254
2 changed files with 0 additions and 6 deletions

View file

@ -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("] ");

View file

@ -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());