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.
Depends on the UIPEthernet library.
Example program:
Import programMQTT_Hello_ENC28J60
MQTT Client example program. Ethernet connection is via an ENC28J60 module.
Diff: MQTTClient.cpp
- Revision:
- 6:1ce536bf461b
- Parent:
- 5:361a6987739b
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; }