Sample MQTT program - simple send and receive

Dependencies:   C12832 MQTT

Fork of HelloMQTT by MQTT

Revision:
21:a68bd76740f9
Parent:
20:49c9daf2b0ff
Child:
23:85b0a1df7d75
--- a/main.cpp	Tue Jan 10 18:10:17 2017 -0600
+++ b/main.cpp	Thu Sep 07 10:06:22 2017 +0100
@@ -25,8 +25,8 @@
 
  */
 
- // change this to 0 to output messages to serial instead of LCD
-#define USE_LCD 1
+ // change this to 1 to output messages to LCD instead of serial
+#define USE_LCD 0
 
 #if USE_LCD
 #include "C12832.h"
@@ -75,7 +75,7 @@
 
     MQTTNetwork mqttNetwork(network);
 
-    MQTT::Client<MQTTNetwork, Countdown> client = MQTT::Client<MQTTNetwork, Countdown>(mqttNetwork);
+    MQTT::Client<MQTTNetwork, Countdown> client(mqttNetwork);
 
     const char* hostname = "m2m.eclipse.org";
     int port = 1883;