Domotique/WifiControlSensor/MQTT.h

16 lines
540 B
C
Raw Normal View History

2016-04-14 01:37:28 +02:00
#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);
2016-06-04 18:45:11 +02:00
int MqttDryPublish(int dry);
2016-06-18 02:24:00 +02:00
int MqttIPPublish(const String &ip);
2016-04-14 01:37:28 +02:00
void MqttCheckSubscription();
void MqttChangeGpioValue(int gpio, int value);
2016-09-28 15:45:45 +02:00
void MqttChangePWMValue(int gpio, int value);
2016-04-14 01:37:28 +02:00
bool MqttIsConfigured();