1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

fixed bullet points on return codes

This commit is contained in:
Alex 2017-06-02 10:18:43 +02:00 committed by Ivan Grokhotkov
parent 42f3ef86a4
commit e39a46fe04

View File

@ -233,7 +233,13 @@ Some functions provide more than just a binary status information. A good exampl
Serial.printf("Connection status: %d\n", WiFi.status()); Serial.printf("Connection status: %d\n", WiFi.status());
This function returns following codes to describe what is going on with Wi-Fi connection: \* 0 : ``WL_IDLE_STATUS`` when Wi-Fi is in process of changing between statuses \* 1 : ``WL_NO_SSID_AVAIL``\ in case configured SSID cannot be reached \* 3 : ``WL_CONNECTED`` after successful connection is established \* 4 : ``WL_CONNECT_FAILED`` if password is incorrect \* 6 : ``WL_DISCONNECTED`` if module is not configured in station mode This function returns following codes to describe what is going on with Wi-Fi connection:
* 0 : ``WL_IDLE_STATUS`` when Wi-Fi is in process of changing between statuses
* 1 : ``WL_NO_SSID_AVAIL``\ in case configured SSID cannot be reached
* 3 : ``WL_CONNECTED`` after successful connection is established
* 4 : ``WL_CONNECT_FAILED`` if password is incorrect
* 6 : ``WL_DISCONNECTED`` if module is not configured in station mode
It is a good practice to display and check information returned by functions. Application development and troubleshooting will be easier with that. It is a good practice to display and check information returned by functions. Application development and troubleshooting will be easier with that.