Skip to content

Commit

Permalink
disable Mqtt output when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteSchm committed Mar 26, 2023
1 parent 26eedc9 commit d80f62d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MqttHandleHuawei.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ void MqttHandleHuaweiClass::loop()
return;
}


const CONFIG_T& config = Configuration.get();

if (!config.Huawei_Enabled) {
return;
}

const RectifierParameters_t *rp = HuaweiCan.get();

if ((millis() - _lastPublish) > (config.Mqtt_PublishInterval * 1000) ) {
Expand Down

0 comments on commit d80f62d

Please sign in to comment.