main.c
// human-readable output for wifi status
human-readable output for wifi status
human - readable output for wifi status
const char* wl_status_to_string(wl_status_t status) {
  switch (status) {
    case WL_NO_SHIELD: return "INITIALIZING... (or NO SHIELD)";
    case WL_IDLE_STATUS: return "IDLE";
    case WL_NO_SSID_AVAIL: return "NO SSID AVAIL";
    case WL_SCAN_COMPLETED: return "SCAN COMPLETED";
    case WL_CONNECTED: return "CONNECTED";
    case WL_CONNECT_FAILED: return "CONNECTION FAILED";
    case WL_CONNECTION_LOST: return "CONNECTION LOST";
    case WL_DISCONNECTED: return "DISCONNECTED";
    default: return "?? WIFI STATUS UNKNOWN ??";
  }
}
const char * wl_status_to_string ( wl_status_t status ) { switch ( status ) { case WL_NO_SHIELD : return " " ; case WL_IDLE_STATUS : return " " ; case WL_NO_SSID_AVAIL : return " " ; case WL_SCAN_COMPLETED : return " " ; case WL_CONNECTED : return " " ; case WL_CONNECT_FAILED : return " " ; case WL_CONNECTION_LOST : return " " ; case WL_DISCONNECTED : return " " ; default : return " " ; } }
human-readable output for wifi status
human - readable output for wifi status