change serial no
This commit is contained in:
@@ -6,7 +6,7 @@ void setup() {
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
|
||||
Serial.println("SN:182829");
|
||||
Serial.println("SN:HCV1002");
|
||||
while (Serial.available() == 0) {} //wait for data available
|
||||
String bufferCommand = Serial.readString(); //read until timeout
|
||||
bufferCommand.trim(); // remove any \r \n whitespace at the end of the String
|
||||
@@ -16,21 +16,22 @@ 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
|
||||
resultCommand.trim(); // remove any \r \n whitespace at the end of the String
|
||||
if (resultCommand == "P") {
|
||||
delay(3000);
|
||||
Serial.println("RESULT SN 18291 1937.23 2828.11 28211.20 121829.12 REND");
|
||||
// Serial.println("RESULT SN HCV1002 23729 24801.67 19190.67 6995.67 REND"); // normal
|
||||
Serial.println("RESULT SN HCV1002 1937.23 2828.11 19580.67 11060.67 REND");
|
||||
delay(15000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user