cc3000 hostdriver with the mbed socket interface
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/UDPSocket.cpp
- Revision:
- 28:8c7cc1c76ff8
- Parent:
- 16:f3676ae62f96
--- a/Socket/UDPSocket.cpp Fri Oct 04 07:06:29 2013 +0000 +++ b/Socket/UDPSocket.cpp Sat Oct 05 20:29:39 2013 +0200 @@ -56,14 +56,14 @@ if (_sock_fd < 0) { return -1; } - - if (!_blocking) { - TimeInterval timeout(_timeout); - if (wait_writable(timeout) != 0) { - DBG_SOCKET("The socket is not writeable. _sock_fd: %d", _sock_fd); - return 0; - } - } + // TODO - seems to be a bug, waiting for TI to respond + // if (!_blocking) { + // TimeInterval timeout(_timeout); + // if (wait_writable(timeout) != 0) { + // DBG_SOCKET("The socket is not writeable. _sock_fd: %d", _sock_fd); + // return 0; + // } + // } return _cc3000_module->_socket.sendto(_sock_fd, packet, length, 0, (sockaddr *)&remote._remote_host, sizeof(sockaddr)); }