Skip to content

Commit 491c9b8

Browse files
JosefKuchardevyte
authored andcommitted
Fix packet typo (#4621)
* Fix packet typo * Another packet typo fix
1 parent cc11b29 commit 491c9b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/esp8266wifi/udp-examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Once we have libraries in place we need to create a ``WiFiUDP`` object. Then we
3636
WiFiUDP Udp;
3737
unsigned int localUdpPort = 4210;
3838
char incomingPacket[255];
39-
char replyPacekt[] = "Hi there! Got the message :-)";
39+
char replyPacket[] = "Hi there! Got the message :-)";
4040
4141
Wi-Fi Connection
4242
~~~~~~~~~~~~~~~~
@@ -85,7 +85,7 @@ For each received packet we are sending back an acknowledge packet:
8585
.. code:: cpp
8686
8787
Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
88-
Udp.write(replyPacekt);
88+
Udp.write(replyPacket);
8989
Udp.endPacket();
9090
9191
Please note we are sending reply to the IP and port of the sender by using ``Udp.remoteIP()`` and ``Udp.remotePort()``.

0 commit comments

Comments
 (0)