mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-21 20:44:47 +00:00
If EXCUDE_MQTT Defined, skip reconnecting MQTT in WiFiAPClient and dont check status of is_mqtt_connected
This commit is contained in:
parent
646b252786
commit
1f9f885aca
@ -108,8 +108,10 @@ static void onNetworkConnected()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FIXME this is kinda yucky, instead we should just have an observable for 'wifireconnected'
|
// FIXME this is kinda yucky, instead we should just have an observable for 'wifireconnected'
|
||||||
|
#ifndef MESHTASTIC_EXCLUDE_MQTT
|
||||||
if (mqtt)
|
if (mqtt)
|
||||||
mqtt->reconnect();
|
mqtt->reconnect();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static int32_t reconnectWiFi()
|
static int32_t reconnectWiFi()
|
||||||
|
@ -756,7 +756,9 @@ void AdminModule::handleGetDeviceConnectionStatus(const meshtastic_MeshPacket &r
|
|||||||
if (conn.wifi.status.is_connected) {
|
if (conn.wifi.status.is_connected) {
|
||||||
conn.wifi.rssi = WiFi.RSSI();
|
conn.wifi.rssi = WiFi.RSSI();
|
||||||
conn.wifi.status.ip_address = WiFi.localIP();
|
conn.wifi.status.ip_address = WiFi.localIP();
|
||||||
|
#ifndef MESHTASTIC_EXCLUDE_MQTT
|
||||||
conn.wifi.status.is_mqtt_connected = mqtt && mqtt->isConnectedDirectly();
|
conn.wifi.status.is_mqtt_connected = mqtt && mqtt->isConnectedDirectly();
|
||||||
|
#endif
|
||||||
conn.wifi.status.is_syslog_connected = false; // FIXME wire this up
|
conn.wifi.status.is_syslog_connected = false; // FIXME wire this up
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user