void Ethernet_setup(){ byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x00 }; IPAddress ip(192, 168, 20, 177); IPAddress gateway(192, 168, 20, 1); IPAddress subnet(255, 255, 255, 0); // Mac as unique value by change last byte from ip last value. mac[5] = ip[3] & 0xFF; // initialize the ethernet device Ethernet.begin(mac, ip, gateway, subnet); // start listening for clients server.begin(); web.begin(); // Report address Serial.print("MAC>>"); for (int i = 0; i < 6; i++) { if (mac[i] < 16) { Serial.print("0"); } Serial.print(mac[i], HEX); if (i < 5) { Serial.print(":"); } } Serial.println(); Serial.print("IP >>"); Serial.println(Ethernet.localIP()); } void webReponse(){ EthernetClient webClient = web.available(); if (webClient) { Serial.println("Web client connected"); while (webClient.connected()) { if (webClient.available()) { // 웹 브라우저에서 요청이 도착한 경우 String request = webClient.readStringUntil('\r'); //Serial.println(request); webClient.flush(); // 웹 브라우저에 출력할 문구 작성 String response = "HTTP/1.1 200 OK\r\n"; response += "Content-Type: text/html\r\n\r\n"; response += "
"; response += Prcss_AI_Read(); //response += "