From fcc91967f9dc766691c89a260b3dc45bb172636b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Fonseca?= Date: Tue, 7 Mar 2017 06:04:39 +0000 Subject: [PATCH] Improve wifi documentation - prefer constants to hardcoded values (#1837) --- 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 15b7ab18..3cca640e 100644 --- a/docs/en/modules/wifi.md +++ b/docs/en/modules/wifi.md @@ -993,14 +993,14 @@ Gets the current status in station mode. `nil` #### Returns -number: 0~5 +The current state which can be one of the following: -- 0: STA_IDLE, -- 1: STA_CONNECTING, -- 2: STA_WRONGPWD, -- 3: STA_APNOTFOUND, -- 4: STA_FAIL, -- 5: STA_GOTIP. +- `wifi.STA_IDLE` +- `wifi.STA_CONNECTING` +- `wifi.STA_WRONGPWD` +- `wifi.STA_APNOTFOUND` +- `wifi.STA_FAIL` +- `wifi.STA_GOTIP` # wifi.ap Module