FIX: NTPClient hangs reading time

https://developer.mbed.org/questions/60493/Bug-reporting-The-socket-is-not-readable/#answer8359

CC3000 + NTP hangs getting time

[CC3000 : HCI TX] Command Sent : 0x1008
[CC3000 : HCI RX] Event Received : 0x1008 - BSD Select
[CC3000 : SOCKET] Select on sock_fd: 0, returns 0. fdSet: 0
[CC3000 : SOCKET] The socket is not readable. _sock_fd: 0

David Fletcher: Jack, I can give you a quick fix. Open NTPClient.cpp, find

m_sock.bind(0); Bind to a random port

and change it to

m_sock.bind(123); Bind to a random port

Let me know if it works for you.


Please log in to post comments.