mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-03-18 23:56:32 +03:00
formatting
This commit is contained in:
@@ -1324,4 +1324,8 @@ zyxwvutsrqponmlkjihgfedcba
|
|||||||
ACAO
|
ACAO
|
||||||
ACAH
|
ACAH
|
||||||
ACAC
|
ACAC
|
||||||
coolingtype
|
coolingtype
|
||||||
|
starttls
|
||||||
|
recp
|
||||||
|
READYCLIENT
|
||||||
|
readymail
|
||||||
|
|||||||
@@ -70,9 +70,9 @@ class APSettings {
|
|||||||
IPAddress subnetMask;
|
IPAddress subnetMask;
|
||||||
|
|
||||||
bool operator==(const APSettings & settings) const {
|
bool operator==(const APSettings & settings) const {
|
||||||
return provisionMode == settings.provisionMode && channel == settings.channel && ssidHidden == settings.ssidHidden
|
return provisionMode == settings.provisionMode && channel == settings.channel && ssidHidden == settings.ssidHidden && maxClients == settings.maxClients
|
||||||
&& maxClients == settings.maxClients && localIP == settings.localIP && gatewayIP == settings.gatewayIP
|
&& localIP == settings.localIP && gatewayIP == settings.gatewayIP && subnetMask == settings.subnetMask && ssid == settings.ssid
|
||||||
&& subnetMask == settings.subnetMask && ssid == settings.ssid && password == settings.password;
|
&& password == settings.password;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void read(const APSettings & settings, JsonObject root);
|
static void read(const APSettings & settings, JsonObject root);
|
||||||
|
|||||||
@@ -886,9 +886,9 @@ std::string AnalogSensor::get_metrics_prometheus() {
|
|||||||
result += (std::string) "\n# TYPE emsesp_" + sensor.name() + " gauge\n";
|
result += (std::string) "\n# TYPE emsesp_" + sensor.name() + " gauge\n";
|
||||||
result += (std::string) "emsesp_" + sensor.name() + " ";
|
result += (std::string) "emsesp_" + sensor.name() + " ";
|
||||||
if (sensor.type() != AnalogType::DIGITAL_OUT && sensor.type() != AnalogType::DIGITAL_IN) {
|
if (sensor.type() != AnalogType::DIGITAL_OUT && sensor.type() != AnalogType::DIGITAL_IN) {
|
||||||
result += (std::string) Helpers::render_value(val, sensor.value(), 2) + "\n";
|
result += (std::string)Helpers::render_value(val, sensor.value(), 2) + "\n";
|
||||||
} else {
|
} else {
|
||||||
result += (std::string) (sensor.value() == 0 ? "0\n" : "1\n");
|
result += (std::string)(sensor.value() == 0 ? "0\n" : "1\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user