This commit is contained in:
Pritimay Sarkar
2023-09-06 10:16:25 +05:30
parent 9c22f6b733
commit 4493d3e65b

View File

@@ -16,14 +16,14 @@ void loop() {
Serial.println("#Buffer Completed");
}
while (Serial.available() == 0) {} //wait for data available
String SampleCommand = Serial.readString(); //read until timeout
SampleCommand.trim(); // remove any \r \n whitespace at the end of the String
if (SampleCommand == "S") {
// while (Serial.available() == 0) {} //wait for data available
// String SampleCommand = Serial.readString(); //read until timeout
// SampleCommand.trim(); // remove any \r \n whitespace at the end of the String
// if (SampleCommand == "S") {
Serial.println("#Sample Started");
delay(2000);
Serial.println("#Sample Completed");
}
// }
while (Serial.available() == 0) {} //wait for data available
String resultCommand = Serial.readString(); //read until timeout