main/task_mqtt.h

changeset 5
b1f38105ca7e
child 7
2b337dd92f25
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main/task_mqtt.h	Thu Mar 30 17:05:05 2023 +0200
@@ -0,0 +1,38 @@
+/**
+ * @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
+ */
+void publish(void);
+
+
+/**
+ * @brief The FreeRTOS task to run MQTT connections.
+ * @param pvParameters Parameters for the task.
+ */
+void task_mqtt(void *pvParameters);
+
+
+#endif

mercurial