diff espNode/desk/src/mqtt.h @ 781:6c42c1f64f00

new driver for esp32 and R503 fingerprint sensor
author drewp@bigasterisk.com
date Mon, 24 Aug 2020 01:27:33 -0700
parents
children e4cf795d3677
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/espNode/desk/src/mqtt.h	Mon Aug 24 01:27:33 2020 -0700
@@ -0,0 +1,24 @@
+#ifndef INCLUDED_MQTT
+#define INCLUDED_MQTT
+#include <AsyncMqttClient.h>
+
+#include <string>
+
+// #include "esp_adc_cal.h"
+
+extern "C" {
+#include "freertos/FreeRTOS.h"
+#include "freertos/timers.h"
+}
+
+namespace mqtt {
+
+void Setup();
+void Publish(std::string subtopic, std::string msg);
+void StopTimer();
+void ConnectToMqtt();
+bool HasPendingCommand();
+std::string PopPendingCommand();
+
+}  // namespace mqtt
+#endif
\ No newline at end of file