123

Revision:
6:1ce536bf461b
Parent:
5:361a6987739b
Child:
7:9571227876ee
--- 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;
 }