소비자가 | 0원 |
---|---|
판매가 | 13000 |
할인판매가 | 13,000원 (13,000원 할인) |
할인금액 | 총 할인금액 원 (모바일할인금액 원) |
적립금 |
130원(1.00%) 원 % 원 % 원 % 원 % 원 % 원 % 원 % 원 % 원 % 원 % 원 % 원 % 원 % |
제휴적립금 | |
배송방법 | 택배 |
배송비 | 3,000원 (70,000원 이상 구매 시 무료) |
상품 추가설명 번역정보 |
배송 | |
---|---|
수량 |
상품 정보 | 가격 | 삭제 |
---|
할인가가 적용된 최종 결제예정금액은 주문 시 확인할 수 있습니다.
[0205] Ethernet W5100 네트워크 확장 보드
특징
IDE의 실험 코드:
/*
* Web Server
*
* A simple web server that shows the value of the analog input pins.
*/
#include
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 0, 15 };
Server server(80);
void setup()
{
Ethernet.begin(mac, ip);
server.begin();
}
void loop()
{
Client client = server.available();
if (client) {
// an http request ends with a blank line
boolean current_line_is_blank = true;
while (client.connected()) {
if (client.available()) {
char c = client.read();
// if we've gotten to the end of the line (received a newline
// character) and the line is blank, the http request has ended,
// so we can send a reply
if (c == '\n' && current_line_is_blank) {
// send a standard http response header
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();
// output the value of each analog input pin
client.print("welcome to tinyos");
client.println("
");
client.print("//*************************************");
client.println("
");
client.print(www.tinyos.net.cn);
client.println("
");
client.print("//*************************************");
client.println("
");
for (int i = 0; i < 6; i++) {
client.print("analog input ");
client.print(i);
client.print(" is ");
client.print(analogRead(i));
client.println("
");
}
break;
}
if (c == '\n') {
// we're starting a new line
current_line_is_blank = true;
} else if (c != '\r') {
// we've gotten a character on the current line
current_line_is_blank = false;
}
}
}
client.stop();
}
}
상품명 | [0205] Ethernet W5100 네트워크 확장 보드 |
---|---|
판매가 | 13,000원 |
상품요약정보 | [0205] Ethernet W5100 네트워크 확장 보드 |
배송방법 | 택배 |
배송비 | 3,000원 (70,000원 이상 구매 시 무료) |
수량 |