1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Include WIFI_OFF option for WiFi.mode(m)

This commit is contained in:
Juha Paananen 2015-08-03 18:21:52 +03:00
parent 8e09520501
commit 52390a3f35

View File

@ -108,7 +108,7 @@ const char HTTP[] PROGMEM = "http:";
This is mostly similar to WiFi shield library. Differences include:
- `WiFi.mode(m)`: set mode to `WIFI_AP`, `WIFI_STA`, or `WIFI_AP_STA`.
- `WiFi.mode(m)`: set mode to `WIFI_AP`, `WIFI_STA`, `WIFI_AP_STA` or `WIFI_OFF`.
- call `WiFi.softAP(ssid)` to set up an open network
- call `WiFi.softAP(ssid, password)` to set up a WPA2-PSK network (password should be at least 8 characters)
- `WiFi.macAddress(mac)` is for STA, `WiFi.softAPmacAddress(mac)` is for AP.