Skip to content

Commit

Permalink
correct mqtt temp value
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecrash committed Dec 6, 2023
1 parent dfe71fe commit a473fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ bool sendtoMQTT()
{
if (tempSens.getAddress(tempDeviceAddress, i))
{
mqttclient.publish(topicBuilder(buff, "DS18B20_", itoa((i + 1), msgBuffer, 10)), dtostrf(tempSens.getTempC(tempDeviceAddress), 4, 1, msgBuffer));
mqttclient.publish(topicBuilder(buff, "DS18B20_", itoa((i + 1), msgBuffer, 10)), dtostrf(tempSens.getTempC(tempDeviceAddress), 4, 2, msgBuffer));
}
}
}
Expand Down

0 comments on commit a473fc8

Please sign in to comment.