From ed679a72637cbda8219772ab96733135d0f33b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Tue, 21 Jun 2016 22:13:26 +0200 Subject: [PATCH] Correct WiFi auth constants in docs, fixes #1360 --- docs/en/modules/enduser-setup.md | 2 +- docs/en/modules/wifi.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/modules/enduser-setup.md b/docs/en/modules/enduser-setup.md index 5d47b41e..704d1dfc 100644 --- a/docs/en/modules/enduser-setup.md +++ b/docs/en/modules/enduser-setup.md @@ -31,7 +31,7 @@ The current setting, true if manual mode is enabled, false if it is not. #### Example ```lua wifi.setmode(wifi.STATIONAP) -wifi.ap.config({ssid="MyPersonalSSID",auth=wifi.AUTH_OPEN}) +wifi.ap.config({ssid="MyPersonalSSID", auth=wifi.OPEN}) enduser_setup.manual(true) enduser_setup.start( function() diff --git a/docs/en/modules/wifi.md b/docs/en/modules/wifi.md index e036c308..da402267 100644 --- a/docs/en/modules/wifi.md +++ b/docs/en/modules/wifi.md @@ -751,7 +751,7 @@ NOTE: SoftAP Configuration will be retained until changed even if device is turn #### Parameters - `ssid` SSID chars 1-32 - `pwd` password chars 8-64 -- `auth` authentication one of AUTH\_OPEN, AUTH\_WPA\_PSK, AUTH\_WPA2\_PSK, AUTH\_WPA\_WPA2\_PSK, default = AUTH\_OPEN +- `auth` authentication method, one of `wifi.OPEN` (default), `wifi.WPA_PSK`, `wifi.WPA2_PSK`, `wifi.WPA_WPA2_PSK` - `channel` channel number 1-14 default = 6 - `hidden` 0 = not hidden, 1 = hidden, default 0 - `max` maximal number of connections 1-4 default=4