Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface FiapV2 HTTPClientForSOAP NTPClient TextLCD mbed-rtos mbed spxml
Fork of temp_FIAP by
Diff: main.cpp
- Revision:
- 1:ddf5d6f68d58
- Parent:
- 0:27cf9683af17
- Child:
- 2:930f87d8765f
--- a/main.cpp	Mon Aug 20 12:05:25 2012 +0000
+++ b/main.cpp	Mon Aug 20 23:48:06 2012 +0000
@@ -15,9 +15,10 @@
 AnalogIn ain(p15);
 DigitalOut led(LED1);
 char timezone[] = "+09:00";  // JST
+char atemp[6];
 FIAP fiap("http://192.168.1.3/axis2/services/FIAPStorage");
 struct fiap_element element[]= {
-    {"http://csse-tech.jp/temp_tauchi",NULL,NULL,NULL,NULL,NULL,NULL,NULL,timezone},
+    {"http://csse-tech.jp/temp_tauchi",atemp,NULL,NULL,NULL,NULL,NULL,NULL,timezone},
 };
 
 
@@ -32,7 +33,6 @@
     lcd.locate(0,1);
     lcd.printf("%s %4.1fDeg",buffer,temp);
 // Save to FIAPStorage
-    char atemp[6];
     sprintf(atemp,"%4.1f",temp);
     struct tm t = *localtime(&ctTime);
     element[0].value=atemp;
    