24 lines
343 B
C++
24 lines
343 B
C++
|
|
#include "settings.h"
|
|
|
|
#include "Arduino.h"
|
|
|
|
#include <WiFi.h>
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
struct SubscribedChannel {
|
|
String * topic;
|
|
void (*callback)(uint8_t *, unsigned int);
|
|
};
|
|
|
|
|
|
|
|
|
|
void MQTT_publish(const char * topic, String str);
|
|
void MQTT_publish(const char * topic, const char * msg);
|
|
void MQTT_loop(void* params);
|
|
void MQTT_setup();
|