<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=ESP32%3A_WiFi_UDP_Echo_Hello</id>
	<title>ESP32: WiFi UDP Echo Hello - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=ESP32%3A_WiFi_UDP_Echo_Hello"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=ESP32:_WiFi_UDP_Echo_Hello&amp;action=history"/>
	<updated>2026-04-19T22:12:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=ESP32:_WiFi_UDP_Echo_Hello&amp;diff=57414&amp;oldid=prev</id>
		<title>Onnowpurbo: /* Referensi */</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=ESP32:_WiFi_UDP_Echo_Hello&amp;diff=57414&amp;oldid=prev"/>
		<updated>2019-11-05T10:42:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Referensi&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:42, 5 November 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l107&quot; &gt;Line 107:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 107:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://www.iotsharing.com/2017/06/how-to-use-udpip-with-arduino-esp32.html&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* http://www.iotsharing.com/2017/06/how-to-use-udpip-with-arduino-esp32.html&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Pranala Menarik==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[ESP32]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=ESP32:_WiFi_UDP_Echo_Hello&amp;diff=57413&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;Sumber: http://www.iotsharing.com/2017/06/how-to-use-udpip-with-arduino-esp32.html  ==Server==   import socket    # bind all IP  HOST = '0.0.0.0'   # Listen on Port   PORT = 4...&quot;</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=ESP32:_WiFi_UDP_Echo_Hello&amp;diff=57413&amp;oldid=prev"/>
		<updated>2019-11-05T10:34:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sumber: http://www.iotsharing.com/2017/06/how-to-use-udpip-with-arduino-esp32.html  ==Server==   import socket    # bind all IP  HOST = &amp;#039;0.0.0.0&amp;#039;   # Listen on Port   PORT = 4...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: http://www.iotsharing.com/2017/06/how-to-use-udpip-with-arduino-esp32.html&lt;br /&gt;
&lt;br /&gt;
==Server==&lt;br /&gt;
&lt;br /&gt;
 import socket&lt;br /&gt;
 &lt;br /&gt;
 # bind all IP&lt;br /&gt;
 HOST = '0.0.0.0' &lt;br /&gt;
 # Listen on Port &lt;br /&gt;
 PORT = 44444 &lt;br /&gt;
 #Size of receive buffer   &lt;br /&gt;
 BUFFER_SIZE = 1024    &lt;br /&gt;
 # Create a TCP/IP socket&lt;br /&gt;
 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)&lt;br /&gt;
 # Bind the socket to the host and port&lt;br /&gt;
 s.bind((HOST, PORT))&lt;br /&gt;
 while True:&lt;br /&gt;
     # Receive BUFFER_SIZE bytes data&lt;br /&gt;
     # data is a list with 2 elements&lt;br /&gt;
     # first is data&lt;br /&gt;
     #second is client address&lt;br /&gt;
     data = s.recvfrom(BUFFER_SIZE)&lt;br /&gt;
     if data:&lt;br /&gt;
         #print received data&lt;br /&gt;
         print('Client to Server: ' , data)&lt;br /&gt;
         # Convert to upper case and send back to Client&lt;br /&gt;
         s.sendto(data[0].upper(), data[1])&lt;br /&gt;
 # Close connection&lt;br /&gt;
 s.close() &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==ESP32==&lt;br /&gt;
&lt;br /&gt;
 #include &amp;lt;WiFi.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;WiFiUdp.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 /* WiFi network name and password */&lt;br /&gt;
 const char * ssid = &amp;quot;HUAWEI-1A73&amp;quot;;&lt;br /&gt;
 const char * pwd = &amp;quot;52408495&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
 // IP address to send UDP data to.&lt;br /&gt;
 // it can be ip address of the server or &lt;br /&gt;
 // a network broadcast address&lt;br /&gt;
 // here is broadcast address&lt;br /&gt;
 const char * udpAddress = &amp;quot;192.168.8.100&amp;quot;;&lt;br /&gt;
 const int udpPort = 44444;&lt;br /&gt;
 &lt;br /&gt;
 //create UDP instance&lt;br /&gt;
 WiFiUDP udp;&lt;br /&gt;
 &lt;br /&gt;
 void setup(){&lt;br /&gt;
   Serial.begin(115200);&lt;br /&gt;
   &lt;br /&gt;
   //Connect to the WiFi network&lt;br /&gt;
    WiFi.begin(ssid, pwd);&lt;br /&gt;
   Serial.println(&amp;quot;&amp;quot;); &lt;br /&gt;
 &lt;br /&gt;
   // Wait for connection&lt;br /&gt;
   while (WiFi.status() != WL_CONNECTED) {&lt;br /&gt;
     delay(500);&lt;br /&gt;
     Serial.print(&amp;quot;.&amp;quot;);&lt;br /&gt;
   }&lt;br /&gt;
   Serial.println(&amp;quot;&amp;quot;);&lt;br /&gt;
   Serial.print(&amp;quot;Connected to &amp;quot;);&lt;br /&gt;
   Serial.println(ssid);&lt;br /&gt;
   Serial.print(&amp;quot;IP address: &amp;quot;);&lt;br /&gt;
   Serial.println(WiFi.localIP());&lt;br /&gt;
   //This initializes udp and transfer buffer&lt;br /&gt;
   udp.begin(udpPort);&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
 void loop(){&lt;br /&gt;
   //data will be sent to server&lt;br /&gt;
   uint8_t buffer[50] = &amp;quot;hello world&amp;quot;;&lt;br /&gt;
   //send hello world to server&lt;br /&gt;
   udp.beginPacket(udpAddress, udpPort);&lt;br /&gt;
   udp.write(buffer, 11);&lt;br /&gt;
   udp.endPacket();&lt;br /&gt;
   memset(buffer, 0, 50);&lt;br /&gt;
   //processing incoming packet, must be called before  reading the buffer&lt;br /&gt;
   udp.parsePacket();&lt;br /&gt;
   //receive response from server, it will be HELLO WORLD&lt;br /&gt;
   if(udp.read(buffer, 50) &amp;gt; 0){&lt;br /&gt;
     Serial.print(&amp;quot;Server to client: &amp;quot;);&lt;br /&gt;
     Serial.println((char *)buffer);&lt;br /&gt;
   }&lt;br /&gt;
   //Wait for 1 second&lt;br /&gt;
   delay(1000);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://www.iotsharing.com/2017/06/how-to-use-udpip-with-arduino-esp32.html&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>