<?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=Arduino%3A_Ethernet_DHCP_Address_Printer</id>
	<title>Arduino: Ethernet DHCP Address Printer - 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=Arduino%3A_Ethernet_DHCP_Address_Printer"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Arduino:_Ethernet_DHCP_Address_Printer&amp;action=history"/>
	<updated>2026-05-03T14:56:07Z</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=Arduino:_Ethernet_DHCP_Address_Printer&amp;diff=45052&amp;oldid=prev</id>
		<title>Onnowpurbo at 00:58, 20 November 2015</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Arduino:_Ethernet_DHCP_Address_Printer&amp;diff=45052&amp;oldid=prev"/>
		<updated>2015-11-20T00:58:51Z</updated>

		<summary type="html">&lt;p&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 00:58, 20 November 2015&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-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&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;/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;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This sketch uses the &lt;/del&gt;DHCP extensions &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to the &lt;/del&gt;Ethernet library &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to get an &lt;/del&gt;IP address via DHCP &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/del&gt;print &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;address &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;obtained using an &lt;/del&gt;Arduino Ethernet shield.&lt;/div&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 class=&quot;diffchange diffchange-inline&quot;&gt;Sketch ini menggunakan &lt;/ins&gt;DHCP extensions &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dari &lt;/ins&gt;Ethernet library &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;untuk memperoleh &lt;/ins&gt;IP address via DHCP &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dan &lt;/ins&gt;print &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;IP &lt;/ins&gt;address &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;yang di peroleh menggunakan &lt;/ins&gt;Arduino Ethernet shield.&lt;/div&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;/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;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DHCP &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is used to assign an &lt;/del&gt;IP address &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;when &lt;/del&gt;Ethernet.begin(mac) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is called&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Using &lt;/del&gt;DHCP &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;significantly increases the &lt;/del&gt;size &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;of a &lt;/del&gt;sketch. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Using the &lt;/del&gt;localIP() &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;function&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the assigned &lt;/del&gt;IP address &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is sent out via the &lt;/del&gt;serial monitor.&lt;/div&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;DHCP &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;menggunakan &lt;/ins&gt;IP address &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;yang dialokasikan saat  &lt;/ins&gt;Ethernet.begin(mac) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dipanggil&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Menggunakan &lt;/ins&gt;DHCP &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;akan sangat memperbesar &lt;/ins&gt;size sketch. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Menggunakan  fungsi &lt;/ins&gt;localIP(), &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;alokasi &lt;/ins&gt;IP address &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;akan dikirim keluar melalui &lt;/ins&gt;serial monitor.&lt;/div&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;/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;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Hardware &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Required&lt;/del&gt;&lt;/div&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;Hardware &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;yang dibutuhkan&lt;/ins&gt;&lt;/div&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;/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;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Arduino &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;or &lt;/del&gt;Genuino Board&lt;/div&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;* Arduino &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;atau &lt;/ins&gt;Genuino Board&lt;/div&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;* Arduino Ethernet Shield  &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;* Arduino Ethernet Shield  &lt;/div&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;/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;==Circuit==&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;==Circuit==&lt;/div&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;/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;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The &lt;/del&gt;Ethernet shield &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;allows you to connect a &lt;/del&gt;WizNet Ethernet controller &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to the &lt;/del&gt;Arduino &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;or &lt;/del&gt;Genuino &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;boards &lt;/del&gt;via &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;SPI bus. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;It uses pins &lt;/del&gt;10, 11, 12, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/del&gt;13 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;for the &lt;/del&gt;SPI &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;connection to the &lt;/del&gt;WizNet. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Later models of the &lt;/del&gt;Ethernet shield &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;also have an &lt;/del&gt;SD Card on board. Digital pin 4 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is used to &lt;/del&gt;control &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/del&gt;slave select &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;pin on the &lt;/del&gt;SD card.&lt;/div&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;Ethernet shield &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;mengijinkan anda untuk tersambung ke &lt;/ins&gt;WizNet Ethernet controller &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ke board &lt;/ins&gt;Arduino &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;atau &lt;/ins&gt;Genuino via SPI bus. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Dia akan menggunakan pin &lt;/ins&gt;10, 11, 12, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dan &lt;/ins&gt;13 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;untuk sambungan &lt;/ins&gt;SPI &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ke &lt;/ins&gt;WizNet. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Model terakhir &lt;/ins&gt;Ethernet shield &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;memiliki &lt;/ins&gt;SD Card on board. Digital pin 4 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;digunakan untuk &lt;/ins&gt;control slave select &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;di &lt;/ins&gt;SD card.&lt;/div&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;/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;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The shield should be connected to a network with an &lt;/del&gt;ethernet &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cable&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;You will need to change the &lt;/del&gt;network &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;settings in the &lt;/del&gt;program &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to correspond to your network&lt;/del&gt;.&lt;/div&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 class=&quot;diffchange diffchange-inline&quot;&gt;Shield disambungkan ke jaringan dengan sebuah kabel &lt;/ins&gt;ethernet. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Kita perlu mengubah &lt;/ins&gt;network &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;setting di &lt;/ins&gt;program &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sesuai dengan jaringan yang kita gunakan&lt;/ins&gt;.&lt;/div&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;/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;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;image developed using Fritzing. For more circuit examples, see the Fritzing project page&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&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;/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;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;In the above image, the Arduino or Genuino board would be stacked below the Ethernet shield.&lt;/del&gt;&lt;/div&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 class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;Code&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Code&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&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;/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;  /*&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;  /*&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=Arduino:_Ethernet_DHCP_Address_Printer&amp;diff=45050&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: Sumber: https://www.arduino.cc/en/Tutorial/DhcpAddressPrinter    This sketch uses the DHCP extensions to the Ethernet library to get an IP address via DHCP and print the address obtained u...</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Arduino:_Ethernet_DHCP_Address_Printer&amp;diff=45050&amp;oldid=prev"/>
		<updated>2015-11-20T00:14:45Z</updated>

		<summary type="html">&lt;p&gt;New page: Sumber: https://www.arduino.cc/en/Tutorial/DhcpAddressPrinter    This sketch uses the DHCP extensions to the Ethernet library to get an IP address via DHCP and print the address obtained u...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: https://www.arduino.cc/en/Tutorial/DhcpAddressPrinter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This sketch uses the DHCP extensions to the Ethernet library to get an IP address via DHCP and print the address obtained using an Arduino Ethernet shield.&lt;br /&gt;
&lt;br /&gt;
DHCP is used to assign an IP address when Ethernet.begin(mac) is called. Using DHCP significantly increases the size of a sketch. Using the localIP() function, the assigned IP address is sent out via the serial monitor.&lt;br /&gt;
&lt;br /&gt;
Hardware Required&lt;br /&gt;
&lt;br /&gt;
* Arduino or Genuino Board&lt;br /&gt;
* Arduino Ethernet Shield &lt;br /&gt;
&lt;br /&gt;
==Circuit==&lt;br /&gt;
&lt;br /&gt;
The Ethernet shield allows you to connect a WizNet Ethernet controller to the Arduino or Genuino boards via the SPI bus. It uses pins 10, 11, 12, and 13 for the SPI connection to the WizNet. Later models of the Ethernet shield also have an SD Card on board. Digital pin 4 is used to control the slave select pin on the SD card.&lt;br /&gt;
&lt;br /&gt;
The shield should be connected to a network with an ethernet cable. You will need to change the network settings in the program to correspond to your network.&lt;br /&gt;
&lt;br /&gt;
image developed using Fritzing. For more circuit examples, see the Fritzing project page&lt;br /&gt;
&lt;br /&gt;
In the above image, the Arduino or Genuino board would be stacked below the Ethernet shield.&lt;br /&gt;
Code&lt;br /&gt;
&lt;br /&gt;
 /*&lt;br /&gt;
   DHCP-based IP printer &lt;br /&gt;
 &lt;br /&gt;
   This sketch uses the DHCP extensions to the Ethernet library&lt;br /&gt;
   to get an IP address via DHCP and print the address obtained.&lt;br /&gt;
   using an Arduino Wiznet Ethernet shield. &lt;br /&gt;
 &lt;br /&gt;
   Circuit:&lt;br /&gt;
    Ethernet shield attached to pins 10, 11, 12, 13&lt;br /&gt;
 &lt;br /&gt;
   created 12 April 2011&lt;br /&gt;
   modified 9 Apr 2012&lt;br /&gt;
   by Tom Igoe&lt;br /&gt;
   modified 02 Sept 2015&lt;br /&gt;
   by Arturo Guadalupi&lt;br /&gt;
 &lt;br /&gt;
 */&lt;br /&gt;
 &lt;br /&gt;
 #include &amp;lt;SPI.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;Ethernet.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 // Enter a MAC address for your controller below.&lt;br /&gt;
 // Newer Ethernet shields have a MAC address printed on a sticker on the shield&lt;br /&gt;
 byte mac[] = {&lt;br /&gt;
   0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02&lt;br /&gt;
 };&lt;br /&gt;
 &lt;br /&gt;
 // Initialize the Ethernet client library&lt;br /&gt;
 // with the IP address and port of the server&lt;br /&gt;
 // that you want to connect to (port 80 is default for HTTP):&lt;br /&gt;
 EthernetClient client;&lt;br /&gt;
 &lt;br /&gt;
 void setup() {&lt;br /&gt;
   // Open serial communications and wait for port to open:&lt;br /&gt;
   Serial.begin(9600);&lt;br /&gt;
   // this check is only needed on the Leonardo:&lt;br /&gt;
   while (!Serial) {&lt;br /&gt;
     ; // wait for serial port to connect. Needed for native USB port  only&lt;br /&gt;
   } &lt;br /&gt;
 &lt;br /&gt;
   // start the Ethernet connection:&lt;br /&gt;
   if (Ethernet.begin(mac) == 0) {&lt;br /&gt;
     Serial.println(&amp;quot;Failed to configure Ethernet using DHCP&amp;quot;);&lt;br /&gt;
     // no point in carrying on, so do nothing forevermore:&lt;br /&gt;
     for (;;)&lt;br /&gt;
       ;&lt;br /&gt;
    }&lt;br /&gt;
   // print your local IP address:&lt;br /&gt;
   printIPAddress();&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void loop() {&lt;br /&gt;
 &lt;br /&gt;
   switch (Ethernet.maintain())&lt;br /&gt;
   {&lt;br /&gt;
     case 1:&lt;br /&gt;
       //renewed fail&lt;br /&gt;
       Serial.println(&amp;quot;Error: renewed fail&amp;quot;);&lt;br /&gt;
       break;&lt;br /&gt;
 &lt;br /&gt;
     case 2:&lt;br /&gt;
       //renewed success&lt;br /&gt;
       Serial.println(&amp;quot;Renewed success&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
       //print your local IP address:&lt;br /&gt;
       printIPAddress();&lt;br /&gt;
       break;&lt;br /&gt;
 &lt;br /&gt;
     case 3:&lt;br /&gt;
       //rebind fail&lt;br /&gt;
       Serial.println(&amp;quot;Error: rebind fail&amp;quot;);&lt;br /&gt;
       break;&lt;br /&gt;
 &lt;br /&gt;
     case 4:&lt;br /&gt;
       //rebind success&lt;br /&gt;
       Serial.println(&amp;quot;Rebind success&amp;quot;); &lt;br /&gt;
 &lt;br /&gt;
       //print your local IP address:&lt;br /&gt;
       printIPAddress();&lt;br /&gt;
       break;&lt;br /&gt;
 &lt;br /&gt;
     default:&lt;br /&gt;
       //nothing happened&lt;br /&gt;
       break; &lt;br /&gt;
 &lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void printIPAddress()&lt;br /&gt;
 {&lt;br /&gt;
   Serial.print(&amp;quot;My IP address: &amp;quot;);&lt;br /&gt;
   for (byte thisByte = 0; thisByte &amp;lt; 4; thisByte++) {&lt;br /&gt;
     // print the value of each byte of the IP address:&lt;br /&gt;
     Serial.print(Ethernet.localIP()[thisByte], DEC);&lt;br /&gt;
     Serial.print(&amp;quot;.&amp;quot;);&lt;br /&gt;
   }&lt;br /&gt;
 &lt;br /&gt;
   Serial.println();&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;
* https://www.arduino.cc/en/Tutorial/DhcpAddressPrinter&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>