1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

fixed replyPakcet to replyPacket (#4439)

Fixed variable name
This commit is contained in:
Aarush Ahuja 2018-02-27 23:51:16 +05:30 committed by Develo
parent cd6cd85fca
commit 29789b1193

View File

@ -106,7 +106,7 @@ The sketch performing all described functionality is presented below:
WiFiUDP Udp;
unsigned int localUdpPort = 4210; // local port to listen on
char incomingPacket[255]; // buffer for incoming packets
char replyPacekt[] = "Hi there! Got the message :-)"; // a reply string to send back
char replyPacket[] = "Hi there! Got the message :-)"; // a reply string to send back
void setup()
@ -144,7 +144,7 @@ The sketch performing all described functionality is presented below:
// send back a reply, to the IP address and port we got the packet from
Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
Udp.write(replyPacekt);
Udp.write(replyPacket);
Udp.endPacket();
}
}