“ESP8266 WiFi”的版本间的差异
第123行: | 第123行: | ||
: Get the gateway ip address. | : Get the gateway ip address. | ||
:返回:IPAddress | :返回:IPAddress | ||
+ | |||
+ | - <font color="forestgreen">WiFi.dnsIP(uint8_t dns_no)</font> | ||
+ | : Get the DNS ip address. | ||
+ | :返回:IPAddress | ||
+ | |||
+ | - <font color="forestgreen">WiFi.hostname(void)</font> | ||
+ | : Get ESP8266 station DHCP hostname | ||
+ | :返回:String | ||
+ | |||
+ | - <font color="forestgreen">WiFi.hostname(char* aHostname)</font> | ||
+ | : Set ESP8266 station DHCP hostname | ||
+ | :返回:bool | ||
+ | |||
+ | - <font color="forestgreen">WiFi.hostname(const char* aHostname)</font> | ||
+ | : Set ESP8266 station DHCP hostname | ||
+ | :返回:bool | ||
+ | |||
+ | - <font color="forestgreen">WiFi.hostname(String aHostname)</font> | ||
+ | : Set ESP8266 station DHCP hostname | ||
+ | :返回:bool | ||
+ | |||
+ | - <font color="forestgreen">WiFi.SSID()</font> | ||
+ | : 获取当前连接网络的SSID | ||
+ | :返回:String | ||
+ | |||
+ | - <font color="forestgreen">WiFi.psk()</font> | ||
+ | : 获取当前连接网络的共享秘钥 | ||
+ | :返回:String | ||
+ | |||
+ | - <font color="forestgreen">WiFi.BSSID(void)</font> | ||
+ | : Return the current bssid / mac associated with the network if configured | ||
+ | :返回:uint8_t* | ||
+ | |||
+ | - <font color="forestgreen">WiFi.BSSIDstr(void)</font> | ||
+ | : Return the current bssid / mac associated with the network if configured | ||
+ | :返回:String | ||
+ | |||
+ | - <font color="forestgreen">WiFi.RSSI(void)</font> | ||
+ | : Return the current network RSSI. | ||
+ | :返回:int32_t (RSSI value) | ||
+ | |||
+ | <font color="orange" size="+1">'''STA远程配置'''</font><br> | ||
+ | |||
<br> | <br> |
2016年3月25日 (五) 13:23的版本
WiFi类
The WiFi class initializes the ethernet library and network settings.
- WiFi.mode()
- 设置wifi模块工作模式WIFI_AP,WIFI_STA,WIFI_AP_STA
Wifi AP - WiFi.softAP(ssid,[password],[channel],[ssid_hidden])
- WiFi.softAPConfig(local_ip,gateway,subnet)
- WiFi.softAPdisconnect(wifioff)
- WiFi.softAPgetStationNum()
- WiFi.softAPIP()
- WiFi.softAPmacAddress(mac)
- WiFi.softAPmacAddress(void)
|
Wifi STA WL_CONNECTED WL_NO_SSID_AVAIL WL_CONNECT_FAILED WL_IDLE_STATUS WL_DISCONNECTED - WiFi.begin()
- WiFi.config(local_ip, gateway, subnet, dns1, dns2)
- WiFi.reconnect()
- WiFi.disconnect(bool wifioff)
- WiFi.isConnected()
- WiFi.setAutoConnect(bool autoConnect)
- WiFi.setAutoConnect()
- WiFi.setAutoReconnect(bool autoReconnect)
- WiFi.waitForConnectResult()
- WiFi.localIP()
- WiFi.macAddress(uint8_t* mac)
- WiFi.macAddress(void)
- WiFi.subnetMask()
- WiFi.gatewayIP()
- WiFi.dnsIP(uint8_t dns_no)
- WiFi.hostname(void)
- WiFi.hostname(char* aHostname)
- WiFi.hostname(const char* aHostname)
- WiFi.hostname(String aHostname)
- WiFi.SSID()
- WiFi.psk()
- WiFi.BSSID(void)
- WiFi.BSSIDstr(void)
- WiFi.RSSI(void)
STA远程配置
|
- - begin()
- - config()
- - setDNS()
- - SSID()
- - BSSID()
- - RSSID()
- - status()
Server 类 The Server class creates servers which can send data to and receive data from connected clients (programs running on other computers or devices).
The client class creates clients that can connect to servers and send and receive data.
The UDP class enables UDP message to be sent and received. |
更多建议和问题欢迎反馈至 YFRobot论坛