cc3000 hostdriver with the mbed socket interface
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/Endpoint.cpp
- Revision:
- 11:5e3771b29385
- Parent:
- 9:4d12b82bc767
- Child:
- 12:1c2a856c618a
- Child:
- 13:5e36c267e62f
--- a/Socket/Endpoint.cpp Tue Oct 01 04:41:47 2013 +0000 +++ b/Socket/Endpoint.cpp Tue Oct 01 21:17:44 2013 +0000 @@ -110,13 +110,13 @@ _remote_host.sin_port = htons(port); #if (CC3000_DEBUG == 1) - printf("DEBUG: remote host address (string): %s\n",get_address()); - printf("DEBUG: remote host address from s_addr : %d.%d.%d.%d\n", + printf("DEBUG: remote host address (string): %s\r\n",get_address()); + printf("DEBUG: remote host address from s_addr : %d.%d.%d.%d\r\n", int(_remote_host.sin_addr.s_addr & 0xFF), int((_remote_host.sin_addr.s_addr & 0xFF00) >> 8), int((_remote_host.sin_addr.s_addr & 0xFF0000) >> 16), int((_remote_host.sin_addr.s_addr & 0xFF000000) >> 24)); - printf("DEBUG: port: %x \n", _remote_host.sin_port); + printf("DEBUG: port: %d \r\n", port); #endif return 0; }