• R/O
  • SSH

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Tunnel(Serial To IEEE1888)


Commit MetaInfo

Revisãofd01534372dfedf30690a56fd500d4417d62e036 (tree)
Hora2015-07-07 22:18:19
Autor <15b05@15b0...>

Mensagem de Log

libraries/FIAPUploadAgent/FIAPUploadAgent.cpp エレメントが1個の場合は遅れない問題対策 15b05

Mudança Sumário

Diff

diff -r c1e826e87e55 -r fd01534372df libraries/FIAPUploadAgent/FIAPUploadAgent.cpp
--- a/libraries/FIAPUploadAgent/FIAPUploadAgent.cpp Fri Jun 26 17:18:16 2015 +0900
+++ b/libraries/FIAPUploadAgent/FIAPUploadAgent.cpp Tue Jul 07 22:18:19 2015 +0900
@@ -180,6 +180,8 @@
180180
181181 // parse HTTP response
182182 count = 0;
183+ // *ADD*: エレメントが1個の場合は遅れない問題対策 15b05
184+ int waitCount = 0; // *ADD*
183185 while (client.connected()) {
184186 // Serial.print("C");
185187 if (client.available()) {
@@ -194,6 +196,13 @@
194196 if (count == 2 || c == '\n') { // end of HTTP response code
195197 break; // 応答ヘッダの2行目以降は見ない
196198 }
199+ } else{ // *ADD*
200+ delay(10); // *ADD*
201+ waitCount++; // *ADD*
202+ if (waitCount > 1000) { // *ADD*
203+ client.stop(); // *ADD*
204+ return 5; // 10 seconds timeout *ADD*
205+ } // *ADD*
197206 }
198207 }
199208 if (!client.connected()) { // unexpected disconnect