Code Sample for ERS4 GEII UNICE ERS4

Dependencies:   C12832 EthernetInterface LM75B MMA7660 MQTT mbed-rtos mbed

Fork of DU4SmartCities by Philippe Bazot

Revision:
3:69ef39823eef
Parent:
2:d8fddda78c38
Child:
4:77fd4b6ceecb
diff -r d8fddda78c38 -r 69ef39823eef main.cpp
--- 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