We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc11b29 commit 491c9b8Copy full SHA for 491c9b8
doc/esp8266wifi/udp-examples.rst
@@ -36,7 +36,7 @@ Once we have libraries in place we need to create a ``WiFiUDP`` object. Then we
36
WiFiUDP Udp;
37
unsigned int localUdpPort = 4210;
38
char incomingPacket[255];
39
- char replyPacekt[] = "Hi there! Got the message :-)";
+ char replyPacket[] = "Hi there! Got the message :-)";
40
41
Wi-Fi Connection
42
~~~~~~~~~~~~~~~~
@@ -85,7 +85,7 @@ For each received packet we are sending back an acknowledge packet:
85
.. code:: cpp
86
87
Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
88
- Udp.write(replyPacekt);
+ Udp.write(replyPacket);
89
Udp.endPacket();
90
91
Please note we are sending reply to the IP and port of the sender by using ``Udp.remoteIP()`` and ``Udp.remotePort()``.
0 commit comments