Local fixes

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Fri Jun 05 15:46:10 2020 +0000
Parent:
5:361a6987739b
Child:
7:0f12a3d0bd10
Commit message:
MQTT Client for ENC28J60 Ethernet modules.

Changed in this revision

MQTTClient.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MQTTClient.cpp	Thu Sep 12 22:01:23 2019 +0000
+++ b/MQTTClient.cpp	Fri Jun 05 15:46:10 2020 +0000
@@ -465,7 +465,12 @@
 bool MQTTClient::subscribe(const char* topic)
 {
     bool    result = subscribe(topic, 0);
+#if MBED_MAJOR_VERSION == 2
     wait_ms(50);
+#else
+    thread_sleep_for(50);
+#endif
+    
     return result;
 }