Forked mbed official WiflyInterface (interface for Roving Networks Wifly modules) which includes the possibility to use TCPSocketServer::accept as a non-blocking cal.
Dependents: WiFlyHTTPServerSample MultiThreadingHTTPServer
Fork of WiflyInterface by
Diff: Wifly/Wifly.cpp
- Revision:
- 10:d84defb718ab
- Parent:
- 9:4f6f2f35a21a
- Child:
- 11:63a7dc9e45dd
--- a/Wifly/Wifly.cpp Wed Jun 05 23:40:17 2013 +0000 +++ b/Wifly/Wifly.cpp Sat Jun 08 07:07:05 2013 +0000 @@ -521,12 +521,13 @@ return c; } - void Wifly::handler_rx(void) { //read characters - while (wifi.readable()) - buf_wifly.queue(wifi.getc()); + while (wifi.readable()) { + char c = LPC_UART3->RBR; + buf_wifly.queue(c); + } } void Wifly::attach_rx(bool callback)