using number for boolean in mqtt json

This commit is contained in:
Patrick Haßel 2025-03-04 12:07:50 +01:00
parent a0ed699f4d
commit 920c78985d

View File

@ -64,7 +64,7 @@ void mqttDisconnect() {
}
void mqttPublishValue(const String& name, const boolean value, const char* unit) {
mqttPublishValue(name, String(value ? "true" : "false"), unit);
mqttPublishValue(name, String(value ? 1 : 0), unit);
}
void mqttPublishValue(const String& name, const int32_t value, const char* unit) {