Mercurial > code > home > repos > homeauto
view espNode/desk/src/mqtt.h @ 1678:7831b5de3572
espNode checkpoint
author | drewp@bigasterisk.com |
---|---|
date | Mon, 27 Sep 2021 22:59:39 -0700 |
parents | e4cf795d3677 |
children |
line wrap: on
line source
#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(const std::string& subtopic, const std::string& msg); void StopTimer(); void ConnectToMqtt(); bool HasPendingMessage(); std::pair<std::string /*topic*/, std::vector<byte> /*payload*/> PopPendingMessage(); } // namespace mqtt #endif