Library to use a wifly module: RN 131 C/G
Dependents: RN-XV_simple_server
Diff: Wifly.cpp
- Revision:
- 16:f524a28790b1
- Parent:
- 12:fd6874542b28
- Child:
- 17:56f3c4da1ea8
--- a/Wifly.cpp Sun Nov 06 12:09:00 2011 +0000 +++ b/Wifly.cpp Sun Nov 06 12:15:50 2011 +0000 @@ -90,12 +90,11 @@ string checking; while (1) { - if (tmr.read() > 3) { + if (tmr.read() > 5) { //We flush the buffer while (wifi.readable()) wifi.getc(); - //printf("checking: %s\r\n", checking); attach_rx(true); return false; } else if (wifi.readable()) { @@ -109,7 +108,6 @@ while (wifi.readable()) wifi.getc(); - //printf("checking: %s\r\n", checking); break; } }