SmartREST client reference implementation for the u-blox C027 mbed compatible device.

Dependencies:   C027 C027_Support mbed mbed-rtos MbedSmartRest LM75B MMA7660 C12832

Fork of MbedSmartRestTest by Vincent Wochnik

Revision:
20:ef9cc1b42e9d
Parent:
19:7bee744fe527
Child:
21:f74b80a0cb38
--- a/io.cpp	Tue Feb 18 17:17:48 2014 +0000
+++ b/io.cpp	Thu Feb 20 11:51:54 2014 +0000
@@ -28,6 +28,8 @@
         puts("Temperature sensor not found.");
     if (!accFound)
         puts("Accelerometer not found.");
+    
+    lcdDisplay.cls();
 }
 
 float temperature()
@@ -67,6 +69,27 @@
     }
 }
 
+void lcd_signal(int8_t rssi, uint8_t ber)
+{
+    lcdDisplay.locate(0, 0);
+    if ((rssi == 0) && (ber == 0))
+        lcdDisplay.printf("No signal\n");
+    else
+        lcdDisplay.printf("RSSI: %d dBm  BER: %d %%\n", rssi, ber);
+}
+
+void lcd_tenant(const char* tenant)
+{
+    lcdDisplay.locate(0, 11);
+    lcdDisplay.printf("Tenant: %s\n", tenant);
+}
+
+void lcd_status(const char* status)
+{
+    lcdDisplay.locate(0, 22);
+    lcdDisplay.printf("%s\n", status);
+}
+
 void timer_callback(void const*)
 {
     if ((!btnPressed) && (button))