Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ESP8266_W7500_Example DualNetworkInterface-Basic
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; }