Fix temperature type
This commit is contained in:
parent
a145dc9a9c
commit
4f50d6f175
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user