MQTT mempool

This commit is contained in:
iranl
2025-03-21 22:24:45 +01:00
parent 42a0aeeb3b
commit 1c546b5f8b
3 changed files with 11 additions and 4 deletions

View File

@@ -44,6 +44,13 @@ build_flags =
-DNUKI_MUTEX_RECURSIVE
-DNUKI_64BIT_TIME
-DETH_SPI_SUPPORTS_NO_IRQ
-DEMC_RX_BUFFER_SIZE=1440
-DEMC_TX_BUFFER_SIZE=1440
-DEMC_MIN_FREE_MEMORY=8192
-DEMC_TASK_STACK_SIZE=10240
-DEMC_USE_MEMPOOL=1
-DEMC_NUM_POOL_ELEMENTS=64
-DEMC_SIZE_POOL_ELEMENTS=256
-Wno-ignored-qualifiers
-Wno-missing-field-initializers
-Wno-type-limits

View File

@@ -5,7 +5,7 @@
#define NUKI_HUB_VERSION "9.10"
#define NUKI_HUB_VERSION_INT (uint32_t)910
#define NUKI_HUB_BUILD "unknownbuildnr"
#define NUKI_HUB_DATE "2025-03-03"
#define NUKI_HUB_DATE "2025-03-21"
#define GITHUB_LATEST_RELEASE_URL (char*)"https://github.com/technyon/nuki_hub/releases/latest"
#define GITHUB_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json"

View File

@@ -33,7 +33,7 @@ void NetworkDevice::init()
{
_useEncryption = true;
Log->println("MQTT over TLS.");
_mqttClientSecure = new espMqttClientSecure(espMqttClientTypes::UseInternalTask::NO);
_mqttClientSecure = new espMqttClientSecure(espMqttClientTypes::UseInternalTask::YES);
_mqttClientSecure->setCACert(caDest);
File file2 = SPIFFS.open("/mqtt_ssl.crt");
@@ -70,7 +70,7 @@ void NetworkDevice::init()
if (!_useEncryption)
{
Log->println("MQTT without TLS.");
_mqttClient = new espMqttClient(espMqttClientTypes::UseInternalTask::NO);
_mqttClient = new espMqttClient(espMqttClientTypes::UseInternalTask::YES);
}
if(_preferences->getBool(preference_mqtt_log_enabled, false) || _preferences->getBool(preference_webserial_enabled, false))
@@ -103,7 +103,7 @@ void NetworkDevice::update()
{
if (_mqttEnabled)
{
getMqttClient()->loop();
//getMqttClient()->loop();
}
}