Buongiorno,
mi sto perdendo in un bicchiere d'acqua (sarà che è venerdì ;D)
La funzione WiFi.Status() cosa restituisce ?
Se apro il file WiFi.h
/*
* Return Connection status.
*
* return: one of the value defined in wl_status_t
*/
uint8_t status();
Se poi vado ad cercare wl_status_t, aprendo il file wl_definitions.h trovo:
typedef enum {
WL_NO_SHIELD = 255,
WL_IDLE_STATUS = 0,
WL_NO_SSID_AVAIL,
WL_SCAN_COMPLETED,
WL_CONNECTED,
WL_CONNECT_FAILED,
WL_CONNECTION_LOST,
WL_DISCONNECTED
} wl_status_t;
Quindi Wifi.status() dovrebbe restituire un valore compreso tra 0 a 255, ma dove trovo la corrispondenza tra il valore e lo stato della connessione WL_NO_SSID_AVAIL, WL_SCAN_COMPLETED, WL_CONNECTED, ... ? :