mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-02 13:24:12 +01:00
38 lines
843 B
C
38 lines
843 B
C
/*
|
|
* wl_definitions.h
|
|
*
|
|
* Created on: Mar 6, 2011
|
|
* Author: dlafauci
|
|
*/
|
|
|
|
#ifndef WL_DEFINITIONS_H_
|
|
#define WL_DEFINITIONS_H_
|
|
|
|
// Maximum size of a SSID
|
|
#define WL_SSID_MAX_LENGTH 32
|
|
// Length of passphrase. Valid lengths are 8-63.
|
|
#define WL_WPA_KEY_MAX_LENGTH 63
|
|
// Length of key in bytes. Valid values are 5 and 13.
|
|
#define WL_WEP_KEY_MAX_LENGTH 13
|
|
// Size of a MAC-address or BSSID
|
|
#define WL_MAC_ADDR_LENGTH 6
|
|
// Size of a MAC-address or BSSID
|
|
#define WL_IPV4_LENGTH 4
|
|
// Maximum size of a SSID list
|
|
#define WL_NETWORKS_LIST_MAXNUM 5
|
|
// Maxmium number of socket
|
|
#define MAX_SOCK_NUM 4
|
|
|
|
typedef enum {
|
|
WL_IDLE_STATUS,
|
|
WL_NO_SSID_AVAIL,
|
|
WL_SCAN_COMPLETED,
|
|
WL_CONNECTED,
|
|
WL_CONNECT_FAILED,
|
|
WL_CONNECTION_LOST,
|
|
WL_DISCONNECTED
|
|
} wl_status_t;
|
|
|
|
|
|
#endif /* WL_DEFINITIONS_H_ */
|