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.
Dependencies: BufferedSerial
Dependents: esp8266_nodeMCU1 esp8266_2_thingspeak1 Solarator_0-0-2 IoTBurglar_and_Fire_AlarmSystem ... more
Fork of ESP8266Interface by
Diff: Socket/Endpoint.cpp
- Revision:
- 30:c035696b9397
- Parent:
- 17:d11fa4c3ac65
- Child:
- 31:fd0eaf273b11
--- a/Socket/Endpoint.cpp Tue Apr 28 20:17:51 2015 +0000
+++ b/Socket/Endpoint.cpp Wed Apr 29 22:43:03 2015 +0000
@@ -34,6 +34,7 @@
void Endpoint::reset_address(void) {
_ipAddress[0] = '\0';
_port = 0;
+ _id = -1;
}
int Endpoint::set_address(const char* host, const int port) {
@@ -41,7 +42,7 @@
ESP8266->gethostbyname(host, _ipAddress);
_port = port;
//Start the UDP Endpoint
- ESP8266->startUDP(_ipAddress,_port);
+ ESP8266->start(ESP_UDP_TYPE,_ipAddress,_port);
return 0;
}
@@ -52,3 +53,7 @@
int Endpoint::get_port() {
return _port;
}
+
+int Endpoint::get_id(){
+ return _id;
+}

Adafruit Huzzah