docs: remove workaround to #9 from examples
This commit is contained in:
parent
d5e9c6d1aa
commit
f95facc254
2 changed files with 0 additions and 6 deletions
|
@ -93,7 +93,6 @@ void reconnect()
|
||||||
{
|
{
|
||||||
// Serial.println(subscribeTopic[i]);
|
// Serial.println(subscribeTopic[i]);
|
||||||
mqtt.subscribe(subscribeTopic[i]);
|
mqtt.subscribe(subscribeTopic[i]);
|
||||||
ethClientSSL.flush();
|
|
||||||
}
|
}
|
||||||
Serial.println("Started updateThing ");
|
Serial.println("Started updateThing ");
|
||||||
updateThing();
|
updateThing();
|
||||||
|
@ -161,7 +160,6 @@ void updateThing()
|
||||||
void MQTTPublish(const char *topic, char *payload)
|
void MQTTPublish(const char *topic, char *payload)
|
||||||
{
|
{
|
||||||
mqtt.publish(topic, payload);
|
mqtt.publish(topic, payload);
|
||||||
ethClientSSL.flush();
|
|
||||||
Serial.print("Published [");
|
Serial.print("Published [");
|
||||||
Serial.print(topic);
|
Serial.print(topic);
|
||||||
Serial.print("] ");
|
Serial.print("] ");
|
||||||
|
|
|
@ -51,12 +51,8 @@ void reconnect() {
|
||||||
Serial.println("connected");
|
Serial.println("connected");
|
||||||
// Once connected, publish an announcement...
|
// Once connected, publish an announcement...
|
||||||
client.publish("outTopic","hello world");
|
client.publish("outTopic","hello world");
|
||||||
// This is a workaround to address https://github.com/OPEnSLab-OSU/SSLClient/issues/9
|
|
||||||
ethClientSSL.flush();
|
|
||||||
// ... and resubscribe
|
// ... and resubscribe
|
||||||
client.subscribe("inTopic");
|
client.subscribe("inTopic");
|
||||||
// This is a workaround to address https://github.com/OPEnSLab-OSU/SSLClient/issues/9
|
|
||||||
ethClientSSL.flush();
|
|
||||||
} else {
|
} else {
|
||||||
Serial.print("failed, rc=");
|
Serial.print("failed, rc=");
|
||||||
Serial.print(client.state());
|
Serial.print(client.state());
|
||||||
|
|
Loading…
Reference in a new issue