From 711aa1f5a3dcaf006b5b30a941855cf71e2b1878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Kucha=C5=99?= Date: Sun, 8 Apr 2018 10:58:15 +0200 Subject: [PATCH 1/2] Fix packet typo --- doc/esp8266wifi/udp-examples.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/esp8266wifi/udp-examples.rst b/doc/esp8266wifi/udp-examples.rst index 3aacec8129..748131075a 100644 --- a/doc/esp8266wifi/udp-examples.rst +++ b/doc/esp8266wifi/udp-examples.rst @@ -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()``. From 6130345ef06e11b9b60d0af7c76fb74d87b5841c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Kucha=C5=99?= Date: Sun, 8 Apr 2018 11:33:35 +0200 Subject: [PATCH 2/2] Another packet typo fix --- doc/esp8266wifi/udp-examples.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/esp8266wifi/udp-examples.rst b/doc/esp8266wifi/udp-examples.rst index 748131075a..dc0f0ee546 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 ~~~~~~~~~~~~~~~~