查看WiFi库的源代码
←
WiFi库
跳转至:
导航
、
搜索
因为以下原因,你没有权限编辑本页:
你刚才请求的操作只对属于该用户组的用户开放:
用户
您可以查看并复制此页面的源代码:
{| border="0" cellpadding="10" width="100%" |- |width="30%" valign="top" align="left"| The firmware for the WiFi shield has changed in Arduino IDE 1.0.5. You are recommended to install this update per these instructions With the Arduino WiFi 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 WEP and WPA2 Personal encryption, but not WPA2 Enterprise. Also note, if the SSID is not broadcast, the shield cannot connect. Arduino communicates with the WiFi 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 but it must be kept as an output or the SPI interface won't work. Digital pin 7 is used as a handshake pin between the Wifi shield and the Arduino, and should not be used. The WiFi library is very similar to the Ethernet library, and many of the function calls are the same. For additional information on the WiFi shield, see the Getting Started page and the WiFi shield hardware page. <font color="orange" size="+2">'''示例'''</font><br> :-[[ ConnectNoEncryption]]: Demonstrates how to connect to an open network :-[[ ConnectWithWEP]]: Demonstrates how to connect to a network that is encrypted with WEP :-[[ ConnectWithWPA]]: Demonstrates how to connect to a network that is encrypted with WPA2 Personal :-[[ ScanNetworks]]: Displays all WiFi networks in range :-[[ WiFiChatServer]]: Set up a simple chat server :-[[ WiFiWebClient]]: Connect to a remote webserver :-[[ WiFiWebClientRepeating]]: Make repeated HTTP calls to a webserver :-[[ WiFiWebServer]]: Serve a webpage from the WiFi shield :-[[ WiFiSendReceiveUDPString]]: Send and receive a UDP string :-[[ UdpNTPClient]]: Query a Network Time Protocol (NTP) server using UDP |width="10%" valign="top" align="left"| <!-- 空白 --> |width="30%" valign="top" align="left"| <br><br><br> <font color="orange" size="+2">'''WiFi类'''</font><br> '''The WiFi class initializes the ethernet library and network settings.''' :-[[WiFi.begin()| begin()]] :-[[WiFi.disconnect()| disconnect()]] :-[[WiFi.config()| config()]] :-[[WiFi.setDNS()| setDNS()]] :-[[WiFi.SSID()| SSID()]] :-[[WiFi.BSSID()| BSSID()]] :-[[WiFi.RSSID()| RSSID()]] :-[[WiFi.encryptionType()| encryptionType()]] :-[[WiFi.scanNetworks()| scanNetworks()]] :-[[WiFi.status()| status()]] :-[[WiFi.getSocket()| getSocket()]] :-[[WiFi.macAddress()| macAddress()]] <br><br> <font color="orange" size="+2">'''IPAddress类'''</font><br> '''The IPAddress class provides information about the network configuration.''' :-[[WiFi.localIP()| localIP()]] :-[[WiFi.subnetMask()| subnetMask()]] :-[[WiFi.gatewayIP()| gatewayIP()]] <br><br> <font color="orange" size="+2">'''Server 类'''</font><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]] :-[[ WiFiServer]] :-[[ begin()]] :-[[ available()]] :-[[ write()]] :-[[ print()]] :-[[ println()]] <br><br> <font color="orange" size="+2">'''Client 类'''</font><br> '''The client class creates clients that can connect to servers and send and receive data.''' :-[[ Client]] :-[[ WiFiClient()]] :-[[ connected()]] :-[[ connect()]] :-[[ write()]] :-[[ print()]] :-[[ println()]] :-[[ available()]] :-[[ read()]] :-[[ flush()]] :-[[ stop()]] <br><br> <font color="orange" size="+2">'''UDP 类'''</font><br> '''The UDP class enables UDP message to be sent and received.''' :-[[WiFiUDP]] :-[[begin()]] :-[[available()]] :-[[beginPacket()]] :-[[endPacket()]] :-[[write()]] :-[[parsePacket()]] :-[[peek()]] :-[[read()]] :-[[flush()]] :-[[stop()]] :-[[remoteIP()]] :-[[remotePort()]] |width="10%" valign="top" align="left"| <!-- 空白 --> |} ---- [[Arduino库|返回Arduino库菜单]] [[首页|返回首页]] 更多建议和问题欢迎反馈至 [http://www.yfrobot.com YFRobot论坛]
返回
WiFi库
。
导航菜单
个人工具
登录
名字空间
页面
讨论
不转换
变种
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
YF-论坛提问
YFRobot-直营店
YFRobot-企业店
Arduino
Arduino之入门篇
Arduino入门教程
Arduino语法参考
Arduino库
Arduino核心代码
编程平台
Mixly库
Mind+库
MakeCode扩展
传感器系列
积木式传感器系列
黑板传感器系列
蓝板传感器系列
Micro:Bit
Micro:Bit 通用基础教程
Valon智能车
Valon-I
帮助
帮助
wiki语法参考
工具箱
链入页面
相关更改
特殊页面
页面信息