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:
parent
d906538edb
commit
526f5457a2
|
@ -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.
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue