first version of cron, does not read configuation from file

This commit is contained in:
Emanuele Trabattoni
2025-07-26 16:05:03 +02:00
parent 91f4c5c750
commit 448e1bad15
8 changed files with 1129 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
#define STACK_DEPTH 8192
#define BUFFER_SIZE 2048
#define PRIOTITY 2
#define PRIORITY 2
MQTTwrapper::MQTTwrapper() : m_config(Config::getInstance()), m_tcp(NetworkClient()), m_client(PubSubClient(m_tcp)), m_loopHandle(NULL)
{
@@ -27,7 +27,7 @@ const bool MQTTwrapper::connect()
LOG_INFO("MQTT client connected to", m_config.m_mqttHost.c_str());
if (m_loopHandle == NULL)
{
xTaskCreate(clientLoop, "mqttLoop", STACK_DEPTH, this, PRIOTITY, &m_loopHandle);
xTaskCreate(clientLoop, "mqttLoop", STACK_DEPTH, this, PRIORITY, &m_loopHandle);
m_client.setCallback(MQTTwrapper::callback);
}
return true;