Jeremy Hammel / Mbed 2 deprecated ATT_Smart_Home

Dependencies:   mbed FXOS8700CQ MODSERIAL

Files at this revision

API Documentation at this revision

Comitter:
fkellermavnet
Date:
Mon Aug 15 22:40:14 2016 +0000
Parent:
78:00cca62e5d9f
Child:
80:d635c0eddd6e
Commit message:
Been timing the URL resolve, it can take a long time sometime for the WNC to reply back with an IP or sometimes an error.; ; I increased the timeout for the dns resolve from 15 to 60 seconds. This is one more step toward better.

Changed in this revision

wnc_control.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/wnc_control.cpp	Mon Aug 15 21:46:21 2016 +0000
+++ b/wnc_control.cpp	Mon Aug 15 22:40:14 2016 +0000
@@ -562,7 +562,7 @@
   string * pRespStr;
   string str(s);
   str = "AT@DNSRESVDON=\"" + str + "\"";
-  if (send_wnc_cmd(str.c_str(), &pRespStr, 15000) == 0)
+  if (send_wnc_cmd(str.c_str(), &pRespStr, 60000) == 0)
   {
     size_t pos_start = pRespStr->find(":\"") + 2;
     size_t pos_end = pRespStr->rfind("\"") - 1;