A program for IoT demonstration with mbed, EnOcean and MQTT.

Dependencies:   IBMIoTClientEthernetExample C12832 EthernetInterface MQTT USB400Serial USBHost mbed

Fork of IBMIoTClientEthernetExample by IBM Watson IoT

Revision:
3:69ef39823eef
Parent:
2:d8fddda78c38
Child:
4:77fd4b6ceecb
--- a/main.cpp	Fri Jul 18 09:27:32 2014 +0000
+++ b/main.cpp	Fri Jul 18 09:33:01 2014 +0000
@@ -366,9 +366,7 @@
         data.password.cstring = password;
     }
     
-    if ((rc = client->connect(&data)) != 0) {
-        lcd.printf("rc from MQTT connect is %d\n", rc);
-    } else {
+    if ((rc = client->connect(&data)) == 0) {
         connected = true;
         
         //RGB: green