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()`.
This commit is contained in:
dnc40085 2016-05-02 04:57:18 -07:00 committed by Marcel Stör
parent d906538edb
commit 526f5457a2
1 changed files with 7 additions and 7 deletions

View File

@ -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)