mbed Weather Platform firmware http://mbed.org/users/okini3939/notebook/mbed-weather-platform-firmware/

Dependencies:   EthernetNetIf SDHCFileSystem I2CLEDDisp Agentbed NTPClient_NetServices mbed BMP085 HTTPClient ConfigFile I2CLCD

Revision:
15:07bfa25ba6ae
Parent:
14:ee6cc1632166
Child:
16:df39da7bef98
--- a/main.cpp	Tue Mar 29 18:15:27 2011 +0000
+++ b/main.cpp	Wed Mar 30 20:09:04 2011 +0000
@@ -67,7 +67,7 @@
 void writefile (char *);
 void pachube (char *);
 char *fmtstr (char *, char *, int);
-void twitter ();
+void twitter (int);
 void weatherstations ();
 void ntpdate ();
 int check_action (char);
@@ -147,6 +147,8 @@
 }
 
 void action (char *buf) {
+    int i;
+    
     if (check_action('h')) {
         swout1 = 1;
         led3 = 1;
@@ -168,9 +170,10 @@
             pachube(buf);
         }
     }
-    if (check_action('T')) {
+    i = check_action('T');
+    if (i) {
         if (conf.ipaddr[0] && conf.twitter_user[0] && conf.twitter_pwd[0]) {
-            twitter();
+            twitter(i == ' ' ? 0 : i - '0');
         }
     }
     if (check_action('S')) {