main/task_wifi.h

changeset 77
15dc572a7fcb
parent 50
aae0056bc20b
--- a/main/task_wifi.h	Thu Sep 28 11:29:23 2023 +0200
+++ b/main/task_wifi.h	Tue Oct 03 17:24:06 2023 +0200
@@ -8,19 +8,15 @@
 
 
 /**
- * @brief Defines the maximum number of access points that can be scanned.
- */
-#define MAX_AP_NUM 			5
-
-
-/**
  * @brief Structure containing the information of the driver task.
  */
 typedef struct {
     bool		STA_connected;		///< Connected to AP as station.
     bool		STA_online;		///< Connected and online.
     char		STA_ssid[33];		///< Connected to this SSID.
+    char		STA_bssid[18];		///< Connected to this BSSID.
     int8_t		STA_rssi;		///< Signal strength.
+    uint8_t		STA_channel;		///< Connected channel.
     char		STA_ip[17];		///< IP address.
     char		STA_nm[17];		///< IP netmask.
     char		STA_gw[17];		///< IP gateway.
@@ -48,6 +44,18 @@
 
 
 /**
+ * @brief Request a WiFi scan.
+ */
+void scan_WiFi(void);
+
+
+/**
+ * @brief Request WiFi disconnect.
+ */
+void disconnect_WiFi(void);
+
+
+/**
  * @brief Main task for the wifi_manager
  * @param pvParameters Parameters for the task.
  */

mercurial