mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Fixed StringCharacters example
This commit is contained in:
@ -29,7 +29,9 @@ void loop() {
|
|||||||
|
|
||||||
// the reading's most significant digit is at position 15 in the reportString:
|
// the reading's most significant digit is at position 15 in the reportString:
|
||||||
char mostSignificantDigit = reportString.charAt(15);
|
char mostSignificantDigit = reportString.charAt(15);
|
||||||
Serial.println("Most significant digit of the sensor reading is: " + mostSignificantDigit);
|
|
||||||
|
String message = "Most significant digit of the sensor reading is: ";
|
||||||
|
Serial.println(message + mostSignificantDigit);
|
||||||
|
|
||||||
// add blank space:
|
// add blank space:
|
||||||
Serial.println();
|
Serial.println();
|
||||||
|
Reference in New Issue
Block a user