POC1.5 prototype 2 x color sensor 2 x LM75B 3 x AnalogIn 1 x accel

Dependencies:   mbed vt100

Revision:
8:5590f55bdf41
Parent:
0:f0de320e23ac
--- a/edge_sensor/edge_temp.cpp	Thu Dec 07 01:06:46 2017 +0000
+++ b/edge_sensor/edge_temp.cpp	Thu Dec 07 10:13:13 2017 +0000
@@ -60,6 +60,8 @@
 int    edge_temp::deliver(void) 
 {
     int result ;
+    char timestr[16] ;
+    
     print_time() ;
     printf(" temp: ") ;
     if (_temp1) {
@@ -75,9 +77,10 @@
         printf("LM75B2 = %.2f ", _ftemp[3]) ;
     }
     printf("\n") ;
+    time2seq(_sampled_time, timestr) ;
     sprintf(_str_buf,
-    "{\"DEVICE\":\"TEMP04\",\"VAL_1\":\"%.1f\",\"VAL_2\":\"%.1f\",\"VAL_3\":\"%.1f\",\"S\":\"%06d\",\"E\":\"%d\"}",
-        _ftemp[0], _ftemp[1], _ftemp[2], time2seq(_sampled_time), _error_count) ;
+    "{\"DEVICE\":\"TEMP04\",\"VAL_1\":\"%.1f\",\"VAL_2\":\"%.1f\",\"VAL_3\":\"%.1f\",\"S\":\"%s\",\"E\":\"%d\"}",
+        _ftemp[0], _ftemp[1], _ftemp[2], timestr, _error_count) ;
     result = afero->setAttribute(1, _str_buf) ;
     return( result == afSUCCESS ) ;
 }