exeption of receive(TCPSocketconnection)
Dependents: FTP_SDCard_File_Client_WIZwiki-W7500 FTPClient_example Freedman DigitalCamera_OV5642_WIZwiki-W7500 ... more
Fork of WIZnetInterface by
Diff: Socket/DHCPClient.cpp
- Revision:
- 15:24a9f2df2145
- Parent:
- 0:6f28332c466f
--- a/Socket/DHCPClient.cpp Wed Jun 17 00:24:45 2015 +0000
+++ b/Socket/DHCPClient.cpp Mon Jun 22 09:11:47 2015 +0000
@@ -110,8 +110,8 @@
void DHCPClient::callback()
{
- //Endpoint host;
- int recv_len = m_udp->receiveFrom(m_server, (char*)m_buf, sizeof(m_buf));
+ Endpoint host;
+ int recv_len = m_udp->receiveFrom(host, (char*)m_buf, sizeof(m_buf));
if (recv_len < 0) {
return;
}
