From 491c9b8b1c8a5a16bc9d84c4509618626f1e6b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Kucha=C5=99?= Date: Sun, 8 Apr 2018 16:12:42 +0200 Subject: [PATCH] Fix packet typo (#4621) * Fix packet typo * Another packet typo fix --- doc/esp8266wifi/udp-examples.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/esp8266wifi/udp-examples.rst b/doc/esp8266wifi/udp-examples.rst index 3aacec812..dc0f0ee54 100644 --- a/doc/esp8266wifi/udp-examples.rst +++ b/doc/esp8266wifi/udp-examples.rst @@ -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 ~~~~~~~~~~~~~~~~ @@ -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()``.