HTTP, MQTT and PSRAM fixes

This commit is contained in:
iranl
2024-11-04 21:32:57 +01:00
parent 7ea04e6366
commit 7632a8cbcc
6 changed files with 86 additions and 25 deletions

View File

@@ -461,8 +461,13 @@ bool NukiNetwork::update()
if(_lastMaintenanceTs == 0 || (ts - _lastMaintenanceTs) > 30000)
{
publishULong(_maintenancePathPrefix, mqtt_topic_uptime, ts / 1000 / 60, true);
publishString(_maintenancePathPrefix, mqtt_topic_mqtt_connection_state, "online", true);
int64_t curUptime = ts / 1000 / 60;
if(curUptime > _publishedUpTime)
{
publishULong(_maintenancePathPrefix, mqtt_topic_uptime, curUptime, true);
_publishedUpTime = curUptime;
}
//publishString(_maintenancePathPrefix, mqtt_topic_mqtt_connection_state, "online", true);
if(_lastMaintenanceTs == 0)
{