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_MQTT_HelloWorld ESP8266_IFTTT_Test ECE_4180_Lab_4 websocketmbed ... more
Fork of ESP8266Interface by
Diff: Socket/UDPSocket.cpp
- Revision:
- 45:c180905b5b79
- Parent:
- 40:0a83315aea0a
- Parent:
- 44:3a7b6083210b
diff -r 2e326d95fe2c -r c180905b5b79 Socket/UDPSocket.cpp
--- a/Socket/UDPSocket.cpp	Thu May 07 04:00:27 2015 +0000
+++ b/Socket/UDPSocket.cpp	Wed Jun 03 18:36:02 2015 +0000
@@ -51,7 +51,8 @@
     // initialize transparent mode if not already done
     if(!endpoint_configured) {
         // initialize UDP (default id of -1 means transparent mode)
-        if(!wifi->start(ESP_UDP_TYPE, remote._ipAddress, remote._port, remote._id)) {
+        //!wifi->start(ESP_UDP_TYPE, remote._ipAddress, remote._port, remote._id
+        if(!wifi->startUDP(remote._ipAddress, remote._port, 0,length)) {
             return(-1);
         }
         endpoint_configured = true;
    
 ESP8266-01
            ESP8266-01