This commit is contained in:
Noah Laptop 2020-04-28 12:03:51 -07:00
parent d01c2e1f27
commit f20f619947

View file

@ -51,8 +51,12 @@ 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());