From 526f5457a2cbb9ea877ba5675fa9d0916aafa69d Mon Sep 17 00:00:00 2001 From: dnc40085 Date: Mon, 2 May 2016 04:57:18 -0700 Subject: [PATCH] Fixed some errors in wifi documentation (#1279) Changed Parameters in `wifi.sta.status()` to match constants in source. Fixed typo in example for `wifi.eventmon.register()`. --- docs/en/modules/wifi.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/en/modules/wifi.md b/docs/en/modules/wifi.md index 84c54773..f7746592 100644 --- a/docs/en/modules/wifi.md +++ b/docs/en/modules/wifi.md @@ -726,12 +726,12 @@ Gets the current status in station mode. #### Returns number: 0~5 -- 0: STATION_IDLE, -- 1: STATION_CONNECTING, -- 2: STATION_WRONG_PASSWORD, -- 3: STATION_NO_AP_FOUND, -- 4: STATION_CONNECT_FAIL, -- 5: STATION_GOT_IP. +- 0: STA_IDLE, +- 1: STA_CONNECTING, +- 2: STA_WRONGPWD, +- 3: STA_APNOTFOUND, +- 4: STA_FAIL, +- 5: STA_GOTIP. # wifi.ap Module @@ -1071,7 +1071,7 @@ T: Table returned by event. T.old_auth_mode.."\n\tnew_auth_mode: "..T.new_auth_mode) end) - wifi.eventmon.register(wifi.eventmon.stasgottipa_got_ip, function(T) + wifi.eventmon.register(wifi.eventmon.STA_GOT_IP, function(T) print("\n\tSTA - GOT IP".."\n\tStation IP: "..T.IP.."\n\tSubnet mask: ".. T.netmask.."\n\tGateway IP: "..T.gateway) end)