Skip to content

아두이노 이더넷쉴드(웹서버) 외부에서 접속 테스트 성공

아두이노 이더넷쉴드(웹서버) 외부에서 접속 테스트 성공

Components

Hardware components

x 1

Project description

이 프로젝트는 Arduino UNO를 이용한 Ethernet Shield 예제이다. 글 작성자는 Ethernet Shield를 이용해 WebServer를 간단히 구성을 했다. 공유기를 사용해서 망을 구성했기 때문에 DHCP로 IP를 할당받는 부분도 포함되어 있다. 그리고 외부 인터넷에서 접속하기 위해 공유기의 포트포워딩 설정 방법을 설명하고 있다. <아두이노 코드> #include <SPI.h> #include <Ethernet.h> // Enter a MAC address and IP address for your controller below. // The IP address will be dependent on your local network: byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; IPAddress ip(192,xxx,xxx,xxx);// 공유기에 할당될 내부아이피 입력 // Initialize the Ethernet server library // with the IP address and port you want to use // (port 80 is default for HTTP)…

Keep reading with a free account

Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.

Similar projects you might like