mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
add network options, IPv6 for mqtt
This commit is contained in:
@@ -96,10 +96,14 @@ class System {
|
||||
void ethernet_connected(bool b) {
|
||||
ethernet_connected_ = b;
|
||||
}
|
||||
void network_connected(bool b) {
|
||||
network_connected_ = b;
|
||||
}
|
||||
|
||||
bool network_connected() {
|
||||
#ifndef EMSESP_STANDALONE
|
||||
return (ethernet_connected_ || WiFi.isConnected());
|
||||
// return (ethernet_connected_ || WiFi.isConnected());
|
||||
return network_connected_;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
@@ -147,6 +151,7 @@ class System {
|
||||
uint32_t last_system_check_ = 0;
|
||||
bool upload_status_ = false; // true if we're in the middle of a OTA firmware upload
|
||||
bool ethernet_connected_ = false;
|
||||
bool network_connected_ = false;
|
||||
uint16_t analog_;
|
||||
|
||||
// settings
|
||||
@@ -155,6 +160,7 @@ class System {
|
||||
uint8_t led_gpio_;
|
||||
bool syslog_enabled_;
|
||||
bool analog_enabled_;
|
||||
bool low_clock_;
|
||||
String board_profile_;
|
||||
uint8_t pbutton_gpio_;
|
||||
int8_t syslog_level_;
|
||||
|
||||
Reference in New Issue
Block a user