mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
start syslog when network connected
This commit is contained in:
@@ -611,7 +611,7 @@ void Mqtt::on_connect() {
|
||||
|
||||
doc["version"] = EMSESP_APP_VERSION;
|
||||
#ifndef EMSESP_STANDALONE
|
||||
if (ETH.linkUp()) {
|
||||
if (EMSESP::system_.ethernet_connected()) {
|
||||
doc["ip"] = ETH.localIP().toString();
|
||||
} else {
|
||||
doc["ip"] = WiFi.localIP().toString();
|
||||
|
||||
Reference in New Issue
Block a user