Ethernet庫

從 YFRobotwiki
在2015年7月21日 (二) 09:32由Admin對話 | 貢獻所做的修訂版本

跳到: 導覽搜尋


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.


Examples


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

- 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




SD Class

The SD class provides functions for accessing the SD card and manipulating its files and directories.

- begin()
- exists()
- mkdir()



File class

The File class allows for reading from and writing to individual files on the SD card.

- available()




File class

The File class allows for reading from and writing to individual files on the SD card.

- available()
- close()
- flush()
- peek()
- position()
- print
- println()



File class

The File class allows for reading from and writing to individual files on the SD card.

- available()
- close()
- flush()
- peek()
- position()
- print
- println()
- seek()
- size()
- read()
- write()
- isDirectory()



SD Class

The SD class provides functions for accessing the SD card and manipulating its files and directories.

- begin()
- exists()
- mkdir()
- open()
- remove()
- rmdir()
- mkdir()
- open()
- remove()
- rmdir()




返回Arduino庫菜單

返回首頁

更多建議和問題歡迎反饋至 YFRobot論壇