blabla
Fork of ESP8266Interface by
Diff: Socket/UDPSocket.cpp
- Revision:
- 19:fb8d5bff2076
- Parent:
- 16:3f0efaa57a12
- Child:
- 21:690526f05fe6
--- a/Socket/UDPSocket.cpp Mon Dec 01 08:25:23 2014 +0000 +++ b/Socket/UDPSocket.cpp Mon Dec 01 08:56:54 2014 +0000 @@ -27,6 +27,7 @@ { endpoint_configured = false; endpoint_read = false; + Endpoint currentEndpoint; } int UDPSocket::init(void) @@ -101,10 +102,12 @@ bool UDPSocket::confEndpoint(Endpoint & ep) { + currentEndpoint = ep; return true; } bool UDPSocket::readEndpoint(Endpoint & ep) { + ep = currentEndpoint; return true; }