15 * we can limit the number of APs detected in a wifi scan. |
15 * we can limit the number of APs detected in a wifi scan. |
16 * The display can handle 7 entries, allow a few more. |
16 * The display can handle 7 entries, allow a few more. |
17 */ |
17 */ |
18 #define MAX_AP_NUM 10 |
18 #define MAX_AP_NUM 10 |
19 |
19 |
20 /** |
|
21 * @brief Defines access point's maximum number of clients. |
|
22 */ |
|
23 #define AP_MAX_CONNECTIONS 4 |
|
24 |
|
25 |
20 |
26 /** |
21 /** |
27 * @brief Structure containing the information of the driver task. |
22 * @brief Structure containing the information of the driver task. |
28 */ |
23 */ |
29 typedef struct { |
24 typedef struct { |
30 bool AP_active; ///< Is the AP active. |
|
31 uint8_t AP_clients; ///< Connected AP clients. |
|
32 bool STA_connected; ///< Connected to AP as station. |
25 bool STA_connected; ///< Connected to AP as station. |
33 bool STA_online; ///< Connected and online. |
26 bool STA_online; ///< Connected and online. |
34 char STA_ssid[33]; ///< Connected to this SSID. |
27 char STA_ssid[33]; ///< Connected to this SSID. |
35 int8_t STA_rssi; ///< Signal strength. |
28 int8_t STA_rssi; ///< Signal strength. |
36 char STA_ip[17]; ///< IP address. |
29 char STA_ip[17]; ///< IP address. |