From 6a3201fcc1b373b53136358420a63f153916f26f Mon Sep 17 00:00:00 2001 From: slaff Date: Mon, 22 Jul 2019 19:10:46 +0200 Subject: [PATCH] Fix UpdServer_Echo. (#1775) --- samples/UdpServer_Echo/app/application.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/samples/UdpServer_Echo/app/application.cpp b/samples/UdpServer_Echo/app/application.cpp index 2990d148e2..6b91e5d04b 100644 --- a/samples/UdpServer_Echo/app/application.cpp +++ b/samples/UdpServer_Echo/app/application.cpp @@ -22,7 +22,7 @@ void onReceive(UdpConnection& connection, char* data, int size, IPAddress remote // Send echo to remote sender String text = String("echo: ") + data; - udp.sendStringTo(remoteIP, EchoPort, text); + udp.sendStringTo(remoteIP, remotePort, text); } void gotIP(IPAddress ip, IPAddress gateway, IPAddress netmask) @@ -34,9 +34,6 @@ void gotIP(IPAddress ip, IPAddress gateway, IPAddress netmask) Serial.print(":"); Serial.println(EchoPort); Serial.println("=============================\r\n"); - - //udp.connect(IPAddress(192, 168, 1, 180), 1234); - //udp.sendString("Hello!"); } void init()