Stability fixes

This commit is contained in:
iranl
2024-04-14 21:54:06 +02:00
parent 8f8666cc75
commit 50b23f2ab2
7 changed files with 22 additions and 82 deletions

View File

@@ -190,13 +190,12 @@ void NetworkLock::onMqttDataReceived(const char* topic, byte* payload, const uns
if(comparePrefixedPath(topic, mqtt_topic_config_action))
{
if(strcmp(value, "") == 0 || strcmp(value, "--") == 0) return;
Log->print(F("Config action received: "));
Log->println(value);
if(_configUpdateReceivedCallback != NULL)
{
_configUpdateReceivedCallback(value);
}
publishString(mqtt_topic_config_action, "--");
}
@@ -480,7 +479,7 @@ void NetworkLock::publishConfig(const NukiLock::Config &config)
json["name"] = config.name;
//json["latitude"] = config.latitude;
//json["longitude"] = config.longitude;
json["autoUnlatch"] = config.autoUnlatch;
json["autoUnlatch"] = config.autoUnlatch;
json["pairingEnabled"] = config.pairingEnabled;
json["buttonEnabled"] = config.buttonEnabled;
json["ledEnabled"] = config.ledEnabled;