Skip to content

Commit

Permalink
It's taking between 4 and 7 seconds to reconnect for me so increase t…
Browse files Browse the repository at this point in the history
…he timout to 10s
  • Loading branch information
dkulp committed Oct 10, 2023
1 parent b2a6caa commit 65806ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ void MosquittoClient::HandleConnect() {
void MosquittoClient::HandleDisconnect() {
LogWarn(VB_CONTROL, "Mosquitto Disconnected. Will try reconnect\n");
m_isConnected = false;
Timers::INSTANCE.addTimer("MosquittoDisconnect", 3000, [this]() {
Timers::INSTANCE.addTimer("MosquittoDisconnect", 10000, [this]() {
if (!m_isConnected) {
WarningHolder::AddWarning("MQTT Disconnected");
}
Expand Down

0 comments on commit 65806ca

Please sign in to comment.