update
This commit is contained in:
parent
637e744386
commit
d015af3cd6
2 changed files with 31 additions and 29 deletions
|
@ -50,9 +50,9 @@ void loop() {
|
||||||
Serial.write(" ");
|
Serial.write(" ");
|
||||||
Serial.write("T");
|
Serial.write("T");
|
||||||
Serial.write(" ");
|
Serial.write(" ");
|
||||||
char lecturaStr[6]; // Buffer big enough for 7-character float
|
char lecturaStrTemp[6]; // Buffer big enough for 7-character float
|
||||||
dtostrf(getDataTemp(), 2, 4, lecturaStr); // Leave room for too large numbers!
|
dtostrf(getDataTemp(), 2, 4, lecturaStrTemp); // Leave room for too large numbers!
|
||||||
Serial.write(lecturaStr);
|
Serial.write(lecturaStrTemp);
|
||||||
Serial.write(" ");
|
Serial.write(" ");
|
||||||
Serial.write("C");
|
Serial.write("C");
|
||||||
Serial.write(" ");
|
Serial.write(" ");
|
||||||
|
@ -67,9 +67,11 @@ void loop() {
|
||||||
|
|
||||||
//char lecturaStr[6]; // Buffer big enough for 7-character float
|
//char lecturaStr[6]; // Buffer big enough for 7-character float
|
||||||
//dtostrf(getData(), 2, 4, lecturaStr); // Leave room for too large numbers!
|
//dtostrf(getData(), 2, 4, lecturaStr); // Leave room for too large numbers!
|
||||||
dtostrf(getDataTur(), 3, 2, lecturaStr); // Leave room for too large numbers!
|
char lecturaStrTur[5]; // Buffer big enough for 7-character float
|
||||||
|
|
||||||
Serial.write(lecturaStr);
|
dtostrf(getDataTur(), 3, 2, lecturaStrTur); // Leave room for too large numbers!
|
||||||
|
|
||||||
|
Serial.write(lecturaStrTur);
|
||||||
Serial.write(" ");
|
Serial.write(" ");
|
||||||
Serial.write("TSS");
|
Serial.write("TSS");
|
||||||
Serial.write(" ");
|
Serial.write(" ");
|
||||||
|
|
Loading…
Reference in a new issue