wifi dependency removed

This commit is contained in:
2022-03-03 15:14:30 +01:00
parent e127009601
commit ecd76bc6d5
4 changed files with 70 additions and 19 deletions
+4 -1
View File
@@ -34,8 +34,11 @@ class Network {
/**
* @brief Establish a connection to the WiFi.
*
* @return true Wifi is connected
* @return false Timeout
*/
static void connectWifi();
static bool connectWifi();
/**
* @brief Set all general settings to connect to a broker.
+16 -1
View File
@@ -14,7 +14,22 @@
// General config
#define MQTT_TIME_RECONNECT 2500
#define HW1
/**
* @brief Wlan connect timeout
*
* This number multiplied by WLAN_CONNECT_LOOP_TIME is the
* timeout in milliseconds.
*/
#define WLAN_CONNECT_TIMEOUT 20
/**
* @brief Wlan connect loop time
*
* The time in milliseconds until the next connection attempt.
*/
#define WLAN_CONNECT_LOOP_TIME 500
#define ESP32BROKER
//Network config ESP32