Skip to content

Commit

Permalink
Fix UpdServer_Echo. (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
slaff authored Jul 22, 2019
1 parent 672f8e0 commit 6a3201f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions samples/UdpServer_Echo/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down

0 comments on commit 6a3201f

Please sign in to comment.