Fix temperature type

This commit is contained in:
Mathieu Maret 2016-03-14 18:12:50 +01:00
parent a145dc9a9c
commit 4f50d6f175
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ const char TEMPERATURE_FEED[] = "/feeds/temperature";
boolean mqttIsConfigured;
int publishMQTT(int temp) {
int publishMQTT(double temp) {
if (MQTT_connect() == 0) {
Serial.println("publishing !");
mqtt_temp->publish(temp);

View File

@ -72,7 +72,7 @@ int getTemperature(double &t);
int MQTT_connect();
int MQTT_isConnected();
int setupMQTT(char *server, char *user, char *passwd, int port);
int publishMQTT(int temp);
int publishMQTT(double temp);
void setupWifi(int bootmode, int forceSetup, char *confSsid, char *confPassword, char *confHost) {
IPAddress myIP;