Local copy

Dependencies:   C12832_lcd ConfigFile EthernetInterface LM75B MMA7660 MQTTPacket mbed-rtos mbed

Fork of IBMIoTClientExampleForLPC1768 by Sam Danbury

Revision:
8:e58e10ca4352
Parent:
7:2c5d0dbd7985
Child:
9:cbabd85f2d5d
--- a/src/main.cpp	Tue Jul 01 08:22:36 2014 +0000
+++ b/src/main.cpp	Tue Jul 01 10:08:39 2014 +0000
@@ -73,11 +73,6 @@
     joystickPos = "CENTRE";
     
     QuickstartClient* c = new QuickstartClient(mac);
-    lcd.cls();
-    lcd.locate(0,0);
-        
-    lcd.printf("Mac address: %s\n", mac);
-    wait(3.0);
     
     //c->subscribe();
     char value[10];
@@ -85,6 +80,9 @@
     while(1) 
     {
         //Initialize lcd
+        lcd.cls();
+        lcd.locate(0,0);
+        lcd.printf("Mac address: %s\n", mac);
         //Flash led to show message has been sent successfully
         led1 = 1;
         string data_points = "\"myName\": \"IoT mbed\"";
@@ -124,8 +122,6 @@
         
         //Message is converted from datapoints into json format and then published
         c->publish(message);//c->publish(m->convertToJson());
-        lcd.printf("After");
-        wait(3.0);
         //if (m) {
           //  delete m;
         //}