|
@ -1,8 +1,11 @@ |
|
|
#include <Arduino.h> |
|
|
#include <Arduino.h> |
|
|
#include <NtpClientLib.h> |
|
|
|
|
|
#include <ArduinoJson.h> |
|
|
#include <ArduinoJson.h> |
|
|
#include <functional> |
|
|
#include <functional> |
|
|
|
|
|
|
|
|
|
|
|
extern "C" { |
|
|
|
|
|
#include "user_interface.h" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#if WEB_SUPPORT |
|
|
#if WEB_SUPPORT |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
@ -36,7 +39,6 @@ void wsOnAfterParseRegister(ws_on_after_parse_callback_f callback); |
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// MQTT |
|
|
// MQTT |
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
#include <AsyncMqttClient.h> |
|
|
|
|
|
typedef std::function<void(unsigned int, const char *, const char *)> mqtt_callback_f; |
|
|
typedef std::function<void(unsigned int, const char *, const char *)> mqtt_callback_f; |
|
|
void mqttRegister(mqtt_callback_f callback); |
|
|
void mqttRegister(mqtt_callback_f callback); |
|
|
String mqttSubtopic(char * topic); |
|
|
String mqttSubtopic(char * topic); |
|
|