16 lines
540 B
C
16 lines
540 B
C
#pragma once
|
|
#include "Adafruit_MQTT.h"
|
|
|
|
Adafruit_MQTT_Publish *MqttCreatePublisher(const char *fmt, ...);
|
|
int MqttConnect();
|
|
int MqttIsConnected();
|
|
int MqttSetup(char *server, char *user, char *passwd, int port, char * hostname);
|
|
int MqttPublish(double temp, double pressure);
|
|
int MqttDhtPublish(float temp, float humidity);
|
|
int MqttDryPublish(int dry);
|
|
int MqttIPPublish(const String &ip);
|
|
void MqttCheckSubscription();
|
|
void MqttChangeGpioValue(int gpio, int value);
|
|
void MqttChangePWMValue(int gpio, int value);
|
|
bool MqttIsConfigured();
|