initialize authName on start

This commit is contained in:
technyon
2024-04-28 10:03:24 +02:00
parent afd4d68580
commit 9b1097159d
2 changed files with 4 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ NetworkLock::NetworkLock(Network* network, Preferences* preferences, char* buffe
_configTopics.push_back(mqtt_topic_config_auto_lock);
_configTopics.push_back(mqtt_topic_config_single_lock);
memset(authName, 0, sizeof(authName));
_network->registerMqttReceiver(this);
}

View File

@@ -17,6 +17,8 @@ NetworkOpener::NetworkOpener(Network* network, Preferences* preferences, char* b
_configTopics.push_back(mqtt_topic_config_led_enabled);
_configTopics.push_back(mqtt_topic_config_sound_level);
memset(authName, 0, sizeof(authName));
_network->registerMqttReceiver(this);
}