This commit is contained in:
Sergio Pernas 2022-09-06 13:50:50 -03:00
parent ce2e217e72
commit cc0ff602eb

View file

@ -50,7 +50,9 @@ void loop() {
Serial.write(" ");
Serial.write("T");
Serial.write(" ");
Serial.write("26.3");
char lecturaStr[6]; // Buffer big enough for 7-character float
dtostrf(getDataTemp(), 2, 4, lecturaStr); // Leave room for too large numbers!
Serial.write(lecturaStr);
Serial.write(" ");
Serial.write("C");
Serial.write(" ");
@ -62,8 +64,13 @@ void loop() {
Serial.write(" ");
Serial.write("Tur");
Serial.write(" ");
Serial.write("26");
Serial.write("1235");
//char lecturaStr[6]; // Buffer big enough for 7-character float
//dtostrf(getData(), 2, 4, lecturaStr); // Leave room for too large numbers!
dtostrf(getDataTur(), 3, 2, lecturaStr); // Leave room for too large numbers!
Serial.write(lecturaStr);
Serial.write(" ");
Serial.write("TSS");
Serial.write(" ");
Serial.write("99");