Commit 526f5457 authored by dnc40085's avatar dnc40085 Committed by Marcel Stör
Browse files

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()`.
parent d906538e
...@@ -726,12 +726,12 @@ Gets the current status in station mode. ...@@ -726,12 +726,12 @@ Gets the current status in station mode.
#### Returns #### Returns
number: 0~5 number: 0~5
- 0: STATION_IDLE, - 0: STA_IDLE,
- 1: STATION_CONNECTING, - 1: STA_CONNECTING,
- 2: STATION_WRONG_PASSWORD, - 2: STA_WRONGPWD,
- 3: STATION_NO_AP_FOUND, - 3: STA_APNOTFOUND,
- 4: STATION_CONNECT_FAIL, - 4: STA_FAIL,
- 5: STATION_GOT_IP. - 5: STA_GOTIP.
# wifi.ap Module # wifi.ap Module
...@@ -1071,7 +1071,7 @@ T: Table returned by event. ...@@ -1071,7 +1071,7 @@ T: Table returned by event.
T.old_auth_mode.."\n\tnew_auth_mode: "..T.new_auth_mode) T.old_auth_mode.."\n\tnew_auth_mode: "..T.new_auth_mode)
end) 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: ".. print("\n\tSTA - GOT IP".."\n\tStation IP: "..T.IP.."\n\tSubnet mask: "..
T.netmask.."\n\tGateway IP: "..T.gateway) T.netmask.."\n\tGateway IP: "..T.gateway)
end) end)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment