Contains example code to connect the mbed LPC1768 or FRDM-K64F devices to the IBM Internet of Things Cloud service via ethernet.

Dependencies:   C12832 MQTT LM75B MMA7660

Dependents:   MFT_IoT_demo_USB400 IBM_RFID

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