update mqtt example to workaround https://github.com/OPEnSLab-OSU/SSLClient/issues/9
This commit is contained in:
parent
d01c2e1f27
commit
f20f619947
1 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue