Skip to content

Commit

Permalink
Fix packet typo (#4621)
Browse files Browse the repository at this point in the history
* Fix packet typo

* Another packet typo fix
  • Loading branch information
JosefKuchar authored and devyte committed Apr 8, 2018
1 parent cc11b29 commit 491c9b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/esp8266wifi/udp-examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Once we have libraries in place we need to create a ``WiFiUDP`` object. Then we
WiFiUDP Udp;
unsigned int localUdpPort = 4210;
char incomingPacket[255];
char replyPacekt[] = "Hi there! Got the message :-)";
char replyPacket[] = "Hi there! Got the message :-)";
Wi-Fi Connection
~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -85,7 +85,7 @@ For each received packet we are sending back an acknowledge packet:
.. code:: cpp
Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
Udp.write(replyPacekt);
Udp.write(replyPacket);
Udp.endPacket();
Please note we are sending reply to the IP and port of the sender by using ``Udp.remoteIP()`` and ``Udp.remotePort()``.
Expand Down

0 comments on commit 491c9b8

Please sign in to comment.