mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
parent
cd6cd85fca
commit
29789b1193
@ -106,7 +106,7 @@ The sketch performing all described functionality is presented below:
|
||||
WiFiUDP Udp;
|
||||
unsigned int localUdpPort = 4210; // local port to listen on
|
||||
char incomingPacket[255]; // buffer for incoming packets
|
||||
char replyPacekt[] = "Hi there! Got the message :-)"; // a reply string to send back
|
||||
char replyPacket[] = "Hi there! Got the message :-)"; // a reply string to send back
|
||||
|
||||
|
||||
void setup()
|
||||
@ -144,7 +144,7 @@ The sketch performing all described functionality is presented below:
|
||||
|
||||
// send back a reply, to the IP address and port we got the packet from
|
||||
Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
|
||||
Udp.write(replyPacekt);
|
||||
Udp.write(replyPacket);
|
||||
Udp.endPacket();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user