mqtt correct warning when disabled

This commit is contained in:
Mathieu Maret 2016-11-20 23:47:25 +01:00
parent 785c555c7e
commit 7bb86cc53a

View File

@ -18,14 +18,14 @@ int MqttPublishGPIO();
#else
int MqttConnect(){return 0;}
int MqttIsConnected(){return 0;}
int MqttSetup(char *server, char *user, char *passwd, int port, char * hostname){return 0;}
template<typename T> int MqttPublish(Adafruit_MQTT_Publish *publisher, T value){return 0;}
int MqttPublishBMP180(double temp, double pressure){return 0;}
int MqttPublishDHT(float temp, float humidity){return 0;}
int MqttPublishIP(const String &ip){return 0;}
int MqttSetup(char *, char *, char *, int, char *){return 0;}
template<typename T> int MqttPublish(void *, T){return 0;}
int MqttPublishBMP180(double, double){return 0;}
int MqttPublishDHT(float, float){return 0;}
int MqttPublishIP(const String &){return 0;}
void MqttCheckSubscription(){}
void MqttChangeGpioValue(int gpio, int value){}
void MqttChangePWMValue(int gpio, int value){}
bool MqttIsConfigured(){}
void MqttChangeGpioValue(int, int){}
void MqttChangePWMValue(int, int){}
bool MqttIsConfigured(){return false;}
int MqttPublishGPIO(){return 0;}
#endif