wifly/socket interface for wifly modules

Dependents:   WiFi neurGAI_WIFI thingspeak thingspeak2

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Wed Aug 22 15:56:23 2012 +0000
Parent:
1:8f04181f9ad8
Child:
3:10b3866f0ea2
Commit message:
timeout decreased

Changed in this revision

Wifly/Wifly.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Wifly/Wifly.cpp	Wed Aug 22 15:52:29 2012 +0000
+++ b/Wifly/Wifly.cpp	Wed Aug 22 15:56:23 2012 +0000
@@ -374,7 +374,7 @@
             result = (putc(str[i]) == str[i]) ? result + 1 : result;
 
         while (1) {
-            if (tmr.read() > 1.5) {
+            if (tmr.read() > 1) {
                 //We flush the buffer
                 while (wifi.readable())
                     wifi.getc();
@@ -413,7 +413,7 @@
         timeout.start();
         tmr.reset();
         while (1) {
-            if (timeout.read() > 3) {
+            if (timeout.read() > 2) {
                 if (i == 0) {
                     res = NULL;
                     break;