MQTT Client for ENC28J60 Ethernet modules. Depends on the UIPEthernet library.

Dependents:   mBuino_ENC28_MQTT MQTT_DHT11_ENC28J60 MQTT_DHT11_ENC28J60_tushar MQTT_Hello_ENC28J60

MQTT library for ENC28J60 Ethernet modules.

/media/uploads/hudakz/enc28j60_module01.jpg

Depends on the UIPEthernet library.

Example program:

Import programMQTT_Hello_ENC28J60

MQTT Client example program. Ethernet connection is via an ENC28J60 module.

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Fri Jun 05 15:46:10 2020 +0000
Parent:
5:361a6987739b
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
diff -r 361a6987739b -r 1ce536bf461b MQTTClient.cpp
--- 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;
 }