- #define WL_NETWORKS_LIST_MAXNUM 10
- // Maxmium number of socket
- #define MAX_SOCK_NUM 4
- // Socket not available constant
- #define SOCK_NOT_AVAIL 255
- // Default state value for Wifi state field
- #define NA_STATE -1
- //Maximum number of attempts to establish wifi connection
- #define WL_MAX_ATTEMPT_CONNECTION 10
-
- typedef enum {
- WL_NO_SHIELD = 255, // for compatibility with WiFi Shield library
- WL_IDLE_STATUS = 0,
- WL_NO_SSID_AVAIL = 1,
- WL_SCAN_COMPLETED = 2,
- WL_CONNECTED = 3,
- WL_CONNECT_FAILED = 4,
- WL_CONNECTION_LOST = 5,
- WL_WRONG_PASSWORD = 6,
- WL_DISCONNECTED = 7
- } wl_status_t;