MQTT verbose logging fixes (#341)
* MQTT verbose logging: fix typo this typo caused that verbose logging was always disabled for MQTT and could not be enabled. * webapp status: show MQTT verbose logging setting
This commit is contained in:
parent
6b425d96b0
commit
2bce8311a7
@ -305,7 +305,7 @@ void WebApiMqttClass::onMqttAdminPost(AsyncWebServerRequest* request)
|
||||
|
||||
CONFIG_T& config = Configuration.get();
|
||||
config.Mqtt_Enabled = root["mqtt_enabled"].as<bool>();
|
||||
config.Mqtt_VerboseLogging = root["verbose_logging"].as<bool>();
|
||||
config.Mqtt_VerboseLogging = root["mqtt_verbose_logging"].as<bool>();
|
||||
config.Mqtt_Retain = root["mqtt_retain"].as<bool>();
|
||||
config.Mqtt_Tls = root["mqtt_tls"].as<bool>();
|
||||
strlcpy(config.Mqtt_RootCaCert, root["mqtt_root_ca_cert"].as<String>().c_str(), sizeof(config.Mqtt_RootCaCert));
|
||||
|
||||
@ -298,6 +298,7 @@
|
||||
"MqttInformation": "MQTT Information",
|
||||
"ConfigurationSummary": "@:ntpinfo.ConfigurationSummary",
|
||||
"Status": "@:ntpinfo.Status",
|
||||
"VerboseLogging": "@:base.VerboseLogging",
|
||||
"Enabled": "Enabled",
|
||||
"Disabled": "Disabled",
|
||||
"Server": "@:ntpinfo.Server",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
export interface MqttStatus {
|
||||
mqtt_enabled: boolean;
|
||||
mqtt_verbose_logging: boolean;
|
||||
mqtt_hostname: string;
|
||||
mqtt_port: number;
|
||||
mqtt_username: string;
|
||||
|
||||
@ -10,6 +10,12 @@
|
||||
<StatusBadge :status="mqttDataList.mqtt_enabled" true_text="mqttinfo.Enabled" false_text="mqttinfo.Disabled" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ $t('mqttinfo.VerboseLogging') }}</th>
|
||||
<td>
|
||||
<StatusBadge :status="mqttDataList.mqtt_verbose_logging" true_text="mqttinfo.Enabled" false_text="mqttinfo.Disabled" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ $t('mqttinfo.Server') }}</th>
|
||||
<td>{{ mqttDataList.mqtt_hostname }}</td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user