wifi dependency removed
This commit is contained in:
+4
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user