main/task_mqtt.h

Wed, 04 Oct 2023 11:28:49 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 04 Oct 2023 11:28:49 +0200
changeset 80
715785443a95
parent 44
e52d11b8f252
permissions
-rw-r--r--

Version 0.3.1. Remove obsolete files from spiffs filesystem. Removed obsolete wifi stations.conf file and functions. Removed obsolete user screens.

/**
 * @file task_mqtt.h
 * @brief The FreeRTOS task to maintain MQTT connections.
 */

#ifndef	_TASK_MQTT_H
#define	_TASK_MQTT_H



/**
 * @brief Request a MQTT connection
 * @param state Request of disconnect a connection.
 */
void connect_mqtt(bool state);


/**
 * @brief Check if MQTT is connected
 * @return Returns true if MQTT is connected
 */
bool ready_mqtt(void);


/**
 * @brief Publish node birth
 */
void publishNode(void);


/**
 * @brief Publish units results
 */
void publishUnits(void);


/**
 * @brief Publish measurement logs
 */
void publishLogs(void);


/**
 * @brief The FreeRTOS task to run MQTT connections.
 * @param pvParameters Parameters for the task.
 */
void task_mqtt(void *pvParameters);


#endif

mercurial