php access

Dependencies:   EthernetInterface HTTPClient mbed-rtos mbed

Fork of SimpleXively by wolf SSL

Revision:
2:7cf2ef9c51da
Parent:
1:3c8fcecce568
--- a/php_access.cpp	Thu Jul 30 07:29:17 2015 +0000
+++ b/php_access.cpp	Thu Jul 28 22:55:30 2016 +0000
@@ -24,7 +24,7 @@
         HTTPMap params;
         HTTPText inText( buff, BUFFSIZE );
         
-        sprintf( str, "%d", j+=*sp );
+        sprintf( str, "%.2f", (*sp)/100.0 );
         params.put("data", str );
         params.put("ch", ch_name );
         char str_sp[128]; sprintf( str_sp, "%d", *sp );