查看Ethernet库的源代码
←
Ethernet库
跳转至:
导航
、
搜索
因为以下原因,你没有权限编辑本页:
你刚才请求的操作只对属于该用户组的用户开放:
用户
您可以查看并复制此页面的源代码:
{| border="0" cellpadding="10" width="100%" |- |width="30%" valign="top" align="left"| With the Arduino Ethernet Shield, this library allows an Arduino board to connect to the internet. It can serve as either a server accepting incoming connections or a client making outgoing ones. The library supports up to four concurrent connection (incoming or outgoing or a combination). Arduino communicates with the shield using the SPI bus. This is on digital pins 11, 12, and 13 on the Uno and pins 50, 51, and 52 on the Mega. On both boards, pin 10 is used as SS. On the Mega, the hardware SS pin, 53, is not used to select the W5100, but it must be kept as an output or the SPI interface won't work. <br><br><br> [[File:arduino_uno_ethernet_pins.png|500px]] <br><br><br> [[File:arduino_mega_ethernet_pins.png|500px]] <br><br><br><br><br> <font color="orange" size="+2">'''Examples'''</font><br> <br><br> :-[[ ChatServer]] : set up a simple chat server. :-[[ WebClient]] : make a HTTP request. :-[[ WebClientRepeating]] : Make repeated HTTP requests. :-[[ WebServer]] : host a simple HTML page that displays analog sensor values. :-[[ BarometricPressureWebServer]] : outputs the values from a barometric pressure sensor as a web page. :-[[ UDPSendReceiveString]] : Send and receive text strings via UDP. :-[[ UdpNtpClient]] : Query a Network Time Protocol (NTP) server using UDP. :-[[ DnsWebClient]] : DNS and DHCP-based Web client. :-[[ DhcpChatServer]] : A simple DHCP Chat Server :-[[ DhcpAddressPrinter]] : Get an IP address via DHCP and print it out :-[[ TelnetClient]] : A simple Telnet client |width="10%" valign="top" align="left"| <!-- 空白 --> |width="30%" valign="top" align="left"| <br><br><br> <font color="orange" size="+2">'''Ethernet class'''</font><br><br> '''The Ethernet class initializes the ethernet library and network settings. ''' :-[[Ethernet.begin()| begin()]] :-[[Ethernet.localIP()| localIP()]] :-[[Ethernet.maintain()| maintain()]] <br> <font color="orange" size="+2">'''IPAddress class'''</font><br><br> '''The IPAddress class works with local and remote IP addressing. ''' :-[[Ethernet.IPAddress()()| IPAddress()]] <br> <font color="orange" size="+2">'''Server class'''</font><br><br> '''The Server class creates servers which can send data to and receive data from connected clients (programs running on other computers or devices). ''' :-[[Server.Server()| Server()]] :-[[Server.EthernetServer()| EthernetServer()]] :-[[Server.begin()| begin()]] :-[[Server.available()| available()]] :-[[Server.write()| write()]] :-[[Server.print()| print]] :-[[Server.println()| println()]] <br> <font color="orange" size="+2">'''Client class'''</font><br><br> '''The client class creates clients that can connect to servers and send and receive data. ''' :-[[Client.Client()| Client()]] :-[[Client.EthernetClient()| EthernetClient()]] :-[[Client.if (EthernetClient)| if (EthernetClient)]] :-[[Client.connected()| connected()]] :-[[Client.connect()| connect()]] :-[[Client.write()| write]] :-[[Client.print()| print]] :-[[Client.println()| println()]] :-[[Client.available()| available()]] :-[[Client.read()| read()]] :-[[Client.flush()| flush()]] :-[[Client.stop()| stop()]] <br> <font color="orange" size="+2">'''EthernetUDP class'''</font><br><br> '''The EthernetUDP class enables UDP message to be sent and received. ''' :-[[EthernetUDP.begin()| begin()]] :-[[EthernetUDP.read()| read()]] :-[[EthernetUDP.write()| write()]] :-[[EthernetUDP.beginPacket()| beginPacket()]] :-[[EthernetUDP.endPacket()| endPacket()]] :-[[EthernetUDP.parsePacket()| parsePacket()]] :-[[EthernetUDP.available()| available()]] :-[[EthernetUDP.stop()| stop()]] :-[[EthernetUDP.remoteIP()| remoteIP()]] :-[[EthernetUDP.remotePort()| remotePort()]] |width="10%" valign="top" align="left"| <!-- 空白 --> |} ---- [[Arduino库|返回Arduino库菜单]] [[首页|返回首页]] 更多建议和问题欢迎反馈至 [http://www.yfrobot.com YFRobot论坛]
返回
Ethernet库
。
导航菜单
个人工具
登录
名字空间
页面
讨论
不转换
变种
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
YF-论坛提问
YFRobot-直营店
YFRobot-企业店
Arduino
Arduino之入门篇
Arduino入门教程
Arduino语法参考
Arduino库
Arduino核心代码
编程平台
Mixly库
Mind+库
MakeCode扩展
传感器系列
积木式传感器系列
黑板传感器系列
蓝板传感器系列
Micro:Bit
Micro:Bit 通用基础教程
Valon智能车
Valon-I
帮助
帮助
wiki语法参考
工具箱
链入页面
相关更改
特殊页面
页面信息