mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +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:
|
||||
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:
|
||||
Serial.println();
|
||||
|
Reference in New Issue
Block a user