folder
This commit is contained in:
@@ -16,14 +16,14 @@ void loop() {
|
|||||||
Serial.println("#Buffer Completed");
|
Serial.println("#Buffer Completed");
|
||||||
}
|
}
|
||||||
|
|
||||||
while (Serial.available() == 0) {} //wait for data available
|
// while (Serial.available() == 0) {} //wait for data available
|
||||||
String SampleCommand = Serial.readString(); //read until timeout
|
// String SampleCommand = Serial.readString(); //read until timeout
|
||||||
SampleCommand.trim(); // remove any \r \n whitespace at the end of the String
|
// SampleCommand.trim(); // remove any \r \n whitespace at the end of the String
|
||||||
if (SampleCommand == "S") {
|
// if (SampleCommand == "S") {
|
||||||
Serial.println("#Sample Started");
|
Serial.println("#Sample Started");
|
||||||
delay(2000);
|
delay(2000);
|
||||||
Serial.println("#Sample Completed");
|
Serial.println("#Sample Completed");
|
||||||
}
|
// }
|
||||||
|
|
||||||
while (Serial.available() == 0) {} //wait for data available
|
while (Serial.available() == 0) {} //wait for data available
|
||||||
String resultCommand = Serial.readString(); //read until timeout
|
String resultCommand = Serial.readString(); //read until timeout
|
||||||
Reference in New Issue
Block a user