--- a/main/task_wifi.c Tue Nov 26 11:55:46 2019 +0100 +++ b/main/task_wifi.c Fri Nov 29 14:26:37 2019 +0100 @@ -17,24 +17,19 @@ wifi_config_t *task_wifi_ConfigSTA = NULL; ///< Current STA configuration. WIFI_State *wifi_state = NULL; ///< Public state for other tasks. -wifi_scan_config_t scan_config = { ///< WiFi scanner configuration. +wifi_scan_config_t scan_config = { .ssid = 0, .bssid = 0, .channel = 0, .show_hidden = false, .scan_time.passive = 130 ///< Beacons are usually sent every 100 mSec. -}; +}; ///< WiFi scanner configuration. uint8_t _wifi_ssid[33]; ///< Current SSID bool _wifi_ScanAPs = false; ///< Scanning bool _wifi_ScanDone = false; ///< Scan ready uint16_t _wifi_Scanned = 0; ///< Total scanned APs. -extern uint32_t TimeSpent; ///< Counter that is increased each second. -extern bool System_TimeOk; -extern time_t now; -extern char strftime_buf[64]; -extern struct tm timeinfo; const int TASK_WIFI_REQUEST_WIFI_SCAN = BIT0; ///< When set, means a client requested to scan wireless networks. const int TASK_WIFI_REQUEST_STA_DISCONNECT = BIT1; ///< When set, means a client requested to disconnect from currently connected AP. @@ -50,13 +45,6 @@ /** - * @brief local callback function. Is called when the timesync is valid - * from a timeserver. Sets the global boolean System_TimeOk value. - * @param tv is the received time. Not used. - */ -//void time_sync_notification_cb(struct timeval *tv); - -/** * @brief Array with AP security names */ const char *apsec[] = { "Open", "WEP", "WPA", "WPA2", "WPA WPA2", "Enterprise" };