cc3000 hostdriver with the mbed socket interface
Dependents: cc3000_hello_world_demo cc3000_simple_socket_demo cc3000_ntp_demo cc3000_ping_demo ... more
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 11:5e3771b29385
- Parent:
- 5:245ac5b73132
- Child:
- 13:5e36c267e62f
--- a/Socket/TCPSocketConnection.cpp Tue Oct 01 04:41:47 2013 +0000
+++ b/Socket/TCPSocketConnection.cpp Tue Oct 01 21:17:44 2013 +0000
@@ -29,21 +29,21 @@
int TCPSocketConnection::connect(const char *host, const int port) {
if (init_socket(SOCK_STREAM, IPPROTO_TCP) < 0) {
#if (CC3000_DEBUG == 1)
- printf("DEBUG: Failed to create tcp socket.\n");
+ printf("DEBUG: Failed to create tcp socket.\r\n");
#endif
return -1;
}
if (set_address(host, port) != 0) {
#if (CC3000_DEBUG == 1)
- printf("DEBUG: Failed to set address (tcp).\n");
+ printf("DEBUG: Failed to set address (tcp).\r\n");
#endif
return -1;
}
if (_cc3000_module->_socket.connect(_sock_fd, (const sockaddr *)&_remote_host, sizeof(_remote_host)) < 0) {
#if (CC3000_DEBUG == 1)
- printf("DEBUG: Failed to connect (tcp).\n");
+ printf("DEBUG: Failed to connect (tcp).\r\n");
#endif
close();
return -1;
SimpleLink Wi-Fi CC3000
Avnet Wi-Go System