Skip to content

Commit 1b67e53

Browse files
committed
WiFiS3: add missing WL*_LENGTH definitions
1 parent e7ed91b commit 1b67e53

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
lines changed

libraries/WiFiS3/src/WiFi.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
#define DEFAULT_GW_AP_ADDRESS IPAddress(192,168,1,1)
1818
#define DEFAULT_NM_AP_ADDRESS IPAddress(255,255,255,0)
1919

20-
2120
#define WIFI_FIRMWARE_LATEST_VERSION "0.4.1"
22-
#define WL_MAC_ADDR_LENGTH 6
2321

2422
class CAccessPoint {
2523
public:

libraries/WiFiS3/src/WiFiTypes.h

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
#ifndef WIFI_S3_TYPES_H
22
#define WIFI_S3_TYPES_H
33

4+
// Maximum size of a SSID
5+
#define WL_SSID_MAX_LENGTH 32
6+
// Length of passphrase. Valid lengths are 8-63.
7+
#define WL_WPA_KEY_MAX_LENGTH 63
8+
// Length of key in bytes. Valid values are 5 and 13.
9+
#define WL_WEP_KEY_MAX_LENGTH 13
10+
// Size of a MAC-address or BSSID
11+
#define WL_MAC_ADDR_LENGTH 6
12+
// Size of a MAC-address or BSSID
13+
#define WL_IPV4_LENGTH 4
14+
415
typedef enum {
5-
WL_NO_SHIELD = 255,
6-
WL_NO_MODULE = WL_NO_SHIELD,
7-
WL_IDLE_STATUS = 0,
8-
WL_NO_SSID_AVAIL,
9-
WL_SCAN_COMPLETED,
10-
WL_CONNECTED,
11-
WL_CONNECT_FAILED,
12-
WL_CONNECTION_LOST,
13-
WL_DISCONNECTED,
14-
WL_AP_LISTENING,
15-
WL_AP_CONNECTED,
16-
WL_AP_FAILED
16+
WL_NO_SHIELD = 255,
17+
WL_NO_MODULE = WL_NO_SHIELD,
18+
WL_IDLE_STATUS = 0,
19+
WL_NO_SSID_AVAIL,
20+
WL_SCAN_COMPLETED,
21+
WL_CONNECTED,
22+
WL_CONNECT_FAILED,
23+
WL_CONNECTION_LOST,
24+
WL_DISCONNECTED,
25+
WL_AP_LISTENING,
26+
WL_AP_CONNECTED,
27+
WL_AP_FAILED
1728
} wl_status_t;
1829

1930
/* Encryption modes */
@@ -27,15 +38,14 @@ enum wl_enc_type {
2738
ENC_TYPE_WPA3,
2839
ENC_TYPE_NONE,
2940
ENC_TYPE_AUTO,
30-
3141
ENC_TYPE_UNKNOWN = 255
3242
};
3343

3444
typedef enum {
35-
WL_PING_DEST_UNREACHABLE = -1,
36-
WL_PING_TIMEOUT = -2,
37-
WL_PING_UNKNOWN_HOST = -3,
38-
WL_PING_ERROR = -4
39-
} wl_ping_result_t;
45+
WL_PING_DEST_UNREACHABLE = -1,
46+
WL_PING_TIMEOUT = -2,
47+
WL_PING_UNKNOWN_HOST = -3,
48+
WL_PING_ERROR = -4
49+
}wl_ping_result_t;
4050

4151
#endif

0 commit comments

Comments
 (0)