Skip to content

Commit 29789b1

Browse files
arush15junedevyte
authored andcommitted
fixed replyPakcet to replyPacket (#4439)
Fixed variable name
1 parent cd6cd85 commit 29789b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/esp8266wifi/udp-examples.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ The sketch performing all described functionality is presented below:
106106
WiFiUDP Udp;
107107
unsigned int localUdpPort = 4210; // local port to listen on
108108
char incomingPacket[255]; // buffer for incoming packets
109-
char replyPacekt[] = "Hi there! Got the message :-)"; // a reply string to send back
109+
char replyPacket[] = "Hi there! Got the message :-)"; // a reply string to send back
110110
111111
112112
void setup()
@@ -144,7 +144,7 @@ The sketch performing all described functionality is presented below:
144144
145145
// send back a reply, to the IP address and port we got the packet from
146146
Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
147-
Udp.write(replyPacekt);
147+
Udp.write(replyPacket);
148148
Udp.endPacket();
149149
}
150150
}

0 commit comments

Comments
 (0)