pitrix/include/my_mqtt.h

31 lines
582 B
C

#ifndef my_mqtt_H
#define my_mqtt_H
#include <PubSubClient.h>
#include <Arduino.h>
void mqtt_callback(char* complete_topic, byte* pl, unsigned int length);
boolean mqtt_connect();
void mqtt_setup();
void mqtt_loop();
void mqtt_publish(const char* topic, int number);
void mqtt_log(const char* message);
void mqtt_log(int number);
void mqtt_log(long unsigned int number);
void mqtt_log_ln(const char* message);
void mqtt_log_ln(int number);
void mqtt_log_ln(long unsigned int number);
void mqtt_log_send(const char* message);
extern String mqtt_log_str;
#endif // mqtt_H