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

Dependencies:   mbed vt100

Revision:
8:5590f55bdf41
Parent:
7:aa858d789025
Child:
9:f958fa2cdc74
--- a/edge_sensor/edge_pressure.cpp	Thu Dec 07 01:06:46 2017 +0000
+++ b/edge_sensor/edge_pressure.cpp	Thu Dec 07 10:13:13 2017 +0000
@@ -75,6 +75,7 @@
 int edge_pressure::deliver(void) 
 {
     char str_buf[32] ;
+    char timestr[16] ;
     int result ;
     float expected ;
     print_time(_sampled_time) ;
@@ -105,11 +106,12 @@
         display->putStr(str_buf) ;
     }
     printf(" %s\n", str_buf) ;
+    time2seq(_sampled_time, timestr) ;
 //    printf(str_buf) ;
 //    printf("\n") ;
     sprintf(_str_buf,
-       "{\"DEVICE\":\"PRESS\",\"PN\":\"PSE530\",\"VAL\":\"%.3f\",\"UNIT\":\"kgf/cm2\",\"S\":\"%06d\",\"E\":\"%d\"}",
-       _value, time2seq(_sampled_time), _error_count) ;
+       "{\"DEVICE\":\"PRESS\",\"PN\":\"PSE530\",\"VAL\":\"%.3f\",\"UNIT\":\"kgf/cm2\",\"S\":\"%s\",\"E\":\"%d\"}",
+       _value, timestr, _error_count) ;
     result = afero->setAttribute(1, _str_buf) ;
     return( result == afSUCCESS ) ;
 }