tenki yoho LED (with ESP-WROOM-02)

Dependencies:   mbed

Revision:
2:5686f264238a
Parent:
1:06fd45432b0c
Child:
3:5689bfb78c7b
--- a/main.cpp	Mon Aug 24 04:50:31 2015 +0000
+++ b/main.cpp	Sun Sep 06 05:33:04 2015 +0000
@@ -14,7 +14,7 @@
 static char rxbuff[1000];   //取得する文字列
 int buffAdr = 0;
 
-const char SSID[] = "your SSDI";  //アクセスポイントのSSID
+const char SSID[] = "your ssid";  //アクセスポイントのSSID
 const char PASS[] = "password";    //アクセスポイントのパスワード
 const char WOEID[] = "28413961";    //天気を調べる場所 http://woeid.rosselliot.co.nz/ で郵便番号で検索して得られる8桁
 
@@ -168,16 +168,9 @@
             wifi.printf("AT+CIPSEND=72\r\n");
             wait(2);
         
-            //サーバに要求
+            //受信
             wifi.printf("GET http://weather.yahooapis.com/forecastrss?u=c&w=%s HTTP/1.1\r\n\r\n",WOEID);
-            if( recvData() == false ) //データの受信
-            {
-                //受信できず
-                red = 1.0;
-                wait(2);
-                break;  //最初からやり直す
-            }
-                
+            recvData();              
             
             //切断
             wifi.printf("AT+CIPCLOSE\r\n");