<div class="hgroup" style="margin: 50px auto 60px; padding: 0px 0px 20px; max-width: 860px; border-bottom: 1px solid rgb(235, 235, 235); font-family: &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;">
   <h1 style="font-size: 1.6875em; margin: 0px 0px 9px; padding: 0px; line-height: 1.4444em;">[ESP32 xBee EVM] W5500 웹서버 테스트</h1>
   <div class="post-meta" style="margin: 0px; padding: 0px; font-size: 0.8125em; color: #808080;"><span class="author">nexp</span>&nbsp;<span class="date">2019. 3. 3. 05:25</span></div>
   </div>
<div class="entry-content" style="margin: 0px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px; height: auto !important;">
   <div class="tt_article_useless_p_margin contents_style" style="margin: 0px; padding: 0px; word-break: break-word;">
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <p style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <figure class="imageblock alignCenter" data-ke-mobilestyle="widthOrigin" data-origin-width="505" data-origin-height="371" style="margin: 0px auto 20px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative; text-align: center;"><span data-url="https://blog.kakaocdn.net/dn/9kkfa/btrrETAMMqk/Eucr503h9i0RR63U0m5H40/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/9kkfa/btrrETAMMqk/Eucr503h9i0RR63U0m5H40/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F9kkfa%2FbtrrETAMMqk%2FEucr503h9i0RR63U0m5H40%2Fimg.png" data-origin-width="505" data-origin-height="371" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; width: 505.005px; margin: 0px; height: auto;" /></span></figure>
      <p style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">ESP32에서 유선 랜을 사용하기 위해 W5500 모듈을 테스트 해 보았다.</p>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">는 WiFi 가 기본적으로 내장되어 있는 칩 이라&nbsp;</p>
      <p style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <figure class="imageblock alignLeft" data-ke-mobilestyle="widthOrigin" data-origin-width="786" data-origin-height="443" style="margin: 0px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative;"><span data-url="https://blog.kakaocdn.net/dn/bhrrAK/btrrJUkVG7a/rFKwJ2ZBVWGzuyNWjoX9Vk/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/bhrrAK/btrrJUkVG7a/rFKwJ2ZBVWGzuyNWjoX9Vk/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbhrrAK%2FbtrrJUkVG7a%2FrFKwJ2ZBVWGzuyNWjoX9Vk%2Fimg.png" data-origin-width="786" data-origin-height="443" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; width: 786px; margin: 0px; height: auto;" /></span></figure>
      <p style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">기존에&nbsp;<a href="https://nexp.tistory.com/tag/W5500" target="_blank" rel="noopener" style="color: #666666;">Arduino에서 테스트 했던 W5500 테스트 코드</a>를 구동하려고 했는데 컴파일 에러가 발생 한다.</p>
      <table border="1" data-ke-align="alignLeft" style="width: 859.995px; margin-bottom: 22px; border-style: solid; border-color: #e6e6e6; font-size: 0.875em; line-height: 1.5714; color: #666666;">
         <tbody>
            <tr>
               <td style="margin: 0px; padding: 7px 0px 11px; word-break: break-word; border-left-style: solid; border-left-color: #e6e6e6; border-top-style: solid; border-top-color: #e6e6e6; width: 858.184px;"><br />WebServer_temp:40:16:&nbsp;error:&nbsp;cannot&nbsp;declare&nbsp;variable&nbsp;'server'&nbsp;to&nbsp;be&nbsp;of&nbsp;abstract&nbsp;type&nbsp;'EthernetServer'<br /><br />&nbsp;EthernetServer&nbsp;server(80);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^~~~~~<br /><br />In&nbsp;file&nbsp;included&nbsp;from&nbsp;C:\Users\nexp7\OneDrive\\Arduino\libraries\Ethernet2\src/Ethernet2.h:17,<br /><br /><br />C:\Users\nexp7\OneDrive\\Arduino\libraries\Ethernet2\src/EthernetServer.h:8:7:&nbsp;note:&nbsp;&nbsp;&nbsp;because&nbsp;the&nbsp;following&nbsp;virtual&nbsp;functions&nbsp;are&nbsp;pure&nbsp;within&nbsp;'EthernetServer':<br /><br />&nbsp;class&nbsp;EthernetServer&nbsp;:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^~~~~~~~~~~~~~<br /><br />In&nbsp;file&nbsp;included&nbsp;from&nbsp;C:\Users\nexp7\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\cores\esp32/Arduino.h:165,<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from&nbsp;sketch\WebServer_temp.ino.cpp:1:<br /><br />C:\Users\nexp7\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\cores\esp32/Server.h:28:18:&nbsp;note:&nbsp; 'virtual&nbsp;void&nbsp;Server::begin(uint16_t)'<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;virtual&nbsp;void&nbsp;begin(uint16_t&nbsp;port=0)&nbsp;=0;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^~~~~<br /><br />exit&nbsp;status&nbsp;1<br /><br />cannot&nbsp;declare&nbsp;variable&nbsp;'server'&nbsp;to&nbsp;be&nbsp;of&nbsp;abstract&nbsp;type&nbsp;'EthernetServer'</td>
               </tr>
            </tbody>
         </table>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">ESP32는 WiFi가 디폴트로 사용을 하고 있기 때문에 server의 bign 함수에서&nbsp;에러가 발생하는데 이부분을 수정하면 문제 없이 컴파일 된다.</p>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">(다만 이렇게 되면 기존 WiFi 예제에는 문제가 발생 할 수 있다. 유선과 무선을 동시에 사용하려면 라이브러리 수정이 필요 할것 같다.)</p>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <div data-pm-slice="1 1 []" data-en-clipboard="true" style="margin: 0px; padding: 0px;">\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\cores\esp32\Server.h</div>
      <div data-pm-slice="1 1 []" data-en-clipboard="true" style="margin: 0px; padding: 0px;">
         <pre id="code_1643091850138" class="c++ arduino" data-ke-language="c++" data-ke-type="codeblock" style="overflow: auto; margin-top: 0px; margin-bottom: 0px; padding: 0px; word-break: break-word; text-wrap: wrap; overflow-wrap: break-word;">
            <code class="hljs cpp" style="margin: 0px; padding: 20px; display: block; overflow-x: auto; color: #abb2bf; background: rgb(40, 44, 52);"><span class="hljs-class"><span class="hljs-keyword" style="color: #f92672;">class</span><span class="hljs-title" style="color: #e6c07b;">Server</span>:</span><span class="hljs-keyword" style="color: #f92672;">public</span> Print
{
<span class="hljs-keyword" style="color: #f92672;">public</span>:
    <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">//virtual void begin(uint16_t port=0) =0;</span><span class="hljs-function" style="color: #61aeee;"><span class="hljs-keyword" style="color: #f92672;">virtual</span><span class="hljs-keyword" style="color: #f92672;">void</span><span class="hljs-title">begin</span><span class="hljs-params" style="color: #a6e22e;">()</span></span>= <span class="hljs-number" style="color: #d19a66;">0</span>;
};</code>
            </pre>
         </div>
      <div data-pm-slice="1 1 []" data-en-clipboard="true" style="margin: 0px; padding: 0px;">
         <hr contenteditable="false" data-ke-type="horizontalRule" data-ke-style="style5" style="border: none; font-size: 0px; line-height: 0; height: 20px; margin: 20px auto; background-image: url(&quot;https://t1.daumcdn.net/keditor/dist/0.4.0/image/divider-line.svg&quot;); background-position: 0px -120px; background-size: 200px 200px; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; cursor: pointer !important;" />
         </div>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">ESP32 xBee EVM 보드의 IO13에 연결되어 있는 W5500을 이용하여&nbsp;<a href="https://nexp.tistory.com/3092" target="_blank" rel="noopener" style="color: #666666;">MAX31856 써모커플 온도 센서 테스트</a>&nbsp;했던 온도 값을 웹페이지에 출력하는 테스트를 진행해 보자</p>
      <pre id="code_1643712462368" class="c++ arduino" data-ke-language="c++" data-ke-type="codeblock" style="overflow: auto; margin-top: 0px; margin-bottom: 0px; padding: 0px; word-break: break-word; text-wrap: wrap; overflow-wrap: break-word;">
         <code class="hljs cpp" style="margin: 0px; padding: 20px; display: block; overflow-x: auto; color: #abb2bf; background: rgb(40, 44, 52);"><span class="hljs-meta" style="color: #61aeee;">#<span class="hljs-meta-keyword">include</span><span class="hljs-meta-string" style="color: #98c379;">&lt;SPI.h&gt;</span></span><span class="hljs-meta" style="color: #61aeee;">#<span class="hljs-meta-keyword">include</span><span class="hljs-meta-string" style="color: #98c379;">&lt;Ethernet2.h&gt;</span></span><span class="hljs-meta" style="color: #61aeee;">#<span class="hljs-meta-keyword">include</span><span class="hljs-meta-string" style="color: #98c379;">&lt;Adafruit_MAX31856.h&gt;</span></span>
Adafruit_MAX31856 maxthermo = <span class="hljs-built_in" style="color: #e6c07b;">Adafruit_MAX31856</span>(<span class="hljs-number" style="color: #d19a66;">13</span>);
<span class="hljs-function" style="color: #61aeee;"><span class="hljs-keyword" style="color: #f92672;">int32_t</span><span class="hljs-title">get_temperature</span><span class="hljs-params" style="color: #a6e22e;">(<span class="hljs-keyword" style="color: #f92672;">void</span>)</span></span>{ 
    <span class="hljs-keyword" style="color: #f92672;">int32_t</span> temp =<span class="hljs-number" style="color: #d19a66;">25</span>; 
	temp = maxthermo.<span class="hljs-built_in" style="color: #e6c07b;">readThermocoupleTemperature</span>();
    <span class="hljs-keyword" style="color: #f92672;">return</span> temp;  
} 
<span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// Enter a MAC address and IP address for your controller below.</span><span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// The IP address will be dependent on your local network:</span>
byte mac[] = {
  <span class="hljs-number" style="color: #d19a66;">0xDE</span>, <span class="hljs-number" style="color: #d19a66;">0xAD</span>, <span class="hljs-number" style="color: #d19a66;">0xBE</span>, <span class="hljs-number" style="color: #d19a66;">0xEF</span>, <span class="hljs-number" style="color: #d19a66;">0xFE</span>, <span class="hljs-number" style="color: #d19a66;">0xED</span>
};
<span class="hljs-function" style="color: #61aeee;">IPAddress <span class="hljs-title">ip</span><span class="hljs-params" style="color: #a6e22e;">(<span class="hljs-number" style="color: #d19a66;">192</span>, <span class="hljs-number" style="color: #d19a66;">168</span>, <span class="hljs-number" style="color: #d19a66;">1</span>, <span class="hljs-number" style="color: #d19a66;">177</span>)</span></span>;
<span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// Initialize the Ethernet server library</span><span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// with the IP address and port you want to use</span><span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// (port 80 is default for HTTP):</span><span class="hljs-function" style="color: #61aeee;">EthernetServer <span class="hljs-title">w5500_server</span><span class="hljs-params" style="color: #a6e22e;">(<span class="hljs-number" style="color: #d19a66;">80</span>)</span></span>;
<span class="hljs-function" style="color: #61aeee;"><span class="hljs-keyword" style="color: #f92672;">void</span><span class="hljs-title">setup</span><span class="hljs-params" style="color: #a6e22e;">()</span></span>{
  <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// Open serial communications and wait for port to open:</span>
  Serial.<span class="hljs-built_in" style="color: #e6c07b;">begin</span>(<span class="hljs-number" style="color: #d19a66;">115200</span>);
  <span class="hljs-keyword" style="color: #f92672;">while</span> (!Serial) {
    ; <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// wait for serial port to connect. Needed for Leonardo only</span>
  }
  Serial.<span class="hljs-built_in" style="color: #e6c07b;">print</span>(<span class="hljs-string" style="color: #98c379;">"server is at "</span>);
  <span class="hljs-keyword" style="color: #f92672;">if</span> (!maxthermo.<span class="hljs-built_in" style="color: #e6c07b;">begin</span>()) {
    Serial.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"Could not initialize thermocouple."</span>);
    <span class="hljs-keyword" style="color: #f92672;">while</span> (<span class="hljs-number" style="color: #d19a66;">1</span>) <span class="hljs-built_in" style="color: #e6c07b;">delay</span>(<span class="hljs-number" style="color: #d19a66;">10</span>);
  }
  maxthermo.<span class="hljs-built_in" style="color: #e6c07b;">setThermocoupleType</span>(MAX31856_TCTYPE_K);
  <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// start the Ethernet connection and the server:</span>
  Ethernet.w5500_cspin = <span class="hljs-number" style="color: #d19a66;">13</span>;
  Ethernet.<span class="hljs-built_in" style="color: #e6c07b;">begin</span>(mac, ip);
  w5500_server.<span class="hljs-built_in" style="color: #e6c07b;">begin</span>();
  Serial.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(Ethernet.<span class="hljs-built_in" style="color: #e6c07b;">localIP</span>());
}
<span class="hljs-function" style="color: #61aeee;"><span class="hljs-keyword" style="color: #f92672;">void</span><span class="hljs-title">loop</span><span class="hljs-params" style="color: #a6e22e;">()</span></span>{
  <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// listen for incoming clients</span>
  EthernetClient client = w5500_server.<span class="hljs-built_in" style="color: #e6c07b;">available</span>();
  <span class="hljs-keyword" style="color: #f92672;">if</span> (client) {
    Serial.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"new client"</span>);
    <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// an http request ends with a blank line</span>
    boolean currentLineIsBlank = <span class="hljs-literal" style="color: #56b6c2;">true</span>;
    <span class="hljs-keyword" style="color: #f92672;">while</span> (client.<span class="hljs-built_in" style="color: #e6c07b;">connected</span>()) {
      <span class="hljs-keyword" style="color: #f92672;">if</span> (client.<span class="hljs-built_in" style="color: #e6c07b;">available</span>()) {
        <span class="hljs-keyword" style="color: #f92672;">char</span> c = client.<span class="hljs-built_in" style="color: #e6c07b;">read</span>();
        Serial.<span class="hljs-built_in" style="color: #e6c07b;">write</span>(c);
        <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// if you've gotten to the end of the line (received a newline</span><span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// character) and the line is blank, the http request has ended,</span><span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// so you can send a reply</span><span class="hljs-keyword" style="color: #f92672;">if</span> (c == <span class="hljs-string" style="color: #98c379;">'\n'</span> &amp;&amp; currentLineIsBlank) {
          <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// send a standard http response header</span>
          client.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"HTTP/1.1 200 OK"</span>);
          client.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"Content-Type: text/html"</span>);
          client.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"Connection: close"</span>);  <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// the connection will be closed after completion of the response</span>
          client.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"Refresh: 5"</span>);  <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// refresh the page automatically every 5 sec</span>
          client.<span class="hljs-built_in" style="color: #e6c07b;">println</span>();
          client.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"&lt;!DOCTYPE HTML&gt;"</span>);
          client.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"&lt;html&gt;&lt;center&gt;"</span>);
          client.<span class="hljs-built_in" style="color: #e6c07b;">print</span>(<span class="hljs-string" style="color: #98c379;">"&lt;h1&gt;"</span>);
          client.<span class="hljs-built_in" style="color: #e6c07b;">print</span>(<span class="hljs-string" style="color: #98c379;">"ESP32 W5500 Temperature : "</span>);
          <span class="hljs-keyword" style="color: #f92672;">int</span> sensorReading = <span class="hljs-built_in" style="color: #e6c07b;">get_temperature</span>();
          client.<span class="hljs-built_in" style="color: #e6c07b;">print</span>(sensorReading);
          client.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"&lt;br /&gt;&lt;/center&gt;&lt;/h1&gt;"</span>);
          client.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"&lt;/html&gt;"</span>);
          <span class="hljs-keyword" style="color: #f92672;">break</span>;
        }
        <span class="hljs-keyword" style="color: #f92672;">if</span> (c == <span class="hljs-string" style="color: #98c379;">'\n'</span>) {
          <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// you're starting a new line</span>
          currentLineIsBlank = <span class="hljs-literal" style="color: #56b6c2;">true</span>;
        }
        <span class="hljs-keyword" style="color: #f92672;">else</span><span class="hljs-keyword" style="color: #f92672;">if</span> (c != <span class="hljs-string" style="color: #98c379;">'\r'</span>) {
          <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// you've gotten a character on the current line</span>
          currentLineIsBlank = <span class="hljs-literal" style="color: #56b6c2;">false</span>;
        }
      }
    }
    <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// give the web browser time to receive the data</span><span class="hljs-built_in" style="color: #e6c07b;">delay</span>(<span class="hljs-number" style="color: #d19a66;">1</span>);
    <span class="hljs-comment" style="color: #b18eb1; font-style: italic;">// close the connection:</span>
    client.<span class="hljs-built_in" style="color: #e6c07b;">stop</span>();
    Serial.<span class="hljs-built_in" style="color: #e6c07b;">println</span>(<span class="hljs-string" style="color: #98c379;">"client disconnected"</span>);
  }
}</code>
         </pre>
      <div data-pm-slice="1 1 []" data-en-clipboard="true" style="margin: 0px; padding: 0px;">&nbsp;</div>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <p data-ke-size="size16" style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">ESP32에서 W5500을 이용한 유선이더넷의 웹서버 테스트</p>
      <p style="margin-bottom: 24px; padding-right: 0px; padding-left: 0px; font-size: 0.9375em; line-height: 1.6; color: #666666; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
      <figure class="imageblock alignLeft" data-ke-mobilestyle="widthOrigin" data-origin-width="550" data-origin-height="452" style="margin: 0px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative;"><span data-url="https://blog.kakaocdn.net/dn/bpakje/btrsiHFwDnu/shjqsCKSpnSBbrFKbWRm6k/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/bpakje/btrsiHFwDnu/shjqsCKSpnSBbrFKbWRm6k/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbpakje%2FbtrsiHFwDnu%2FshjqsCKSpnSBbrFKbWRm6k%2Fimg.png" data-origin-width="550" data-origin-height="452" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; width: 550.005px; margin: 0px; height: auto;" /></span></figure>
      </div>
   </div>