SNIC UART Interface library: Serial to Wi-Fi library for Murata TypeYD Wi-Fi module. For more information about TypeYD: http://www.murata.co.jp/products/microwave/module/lbwb1zzydz/index.html
Dependents: SNIC-xively-jumpstart-demo SNIC-FluentLogger-example TCPEchoServer murataDemo ... more
Fork of YDwifiInterface by
Diff: Socket/UDPSocket.cpp
- Revision:
- 50:cd632a13e4dc
- Parent:
- 43:d80bbb12ffe6
--- a/Socket/UDPSocket.cpp Tue Mar 31 02:50:55 2015 +0000
+++ b/Socket/UDPSocket.cpp Tue Mar 31 02:53:44 2015 +0000
@@ -303,9 +303,17 @@
con_info_p->mutex.lock();
con_info_p->is_receive_complete = true;
con_info_p->mutex.unlock();
- while( con_info_p->is_received == false )
+ if( con_info_p->is_received == false )
{
+ // Try receive
Thread::yield();
+
+ if( con_info_p->is_received == false )
+ {
+ // No data received.
+ FUNC_OUT();
+ return 0;
+ }
}
// Get packet data from buffer for receive.
int i;
muRata

Murata TypeYD