Compare commits
5 commits
a70d4734b7
...
5c68e94310
Author | SHA1 | Date | |
---|---|---|---|
|
5c68e94310 | ||
|
a58cb67017 | ||
|
dca7f9e7dd | ||
|
de4d4f06a2 | ||
|
3717b24234 |
3 changed files with 11 additions and 14 deletions
|
@ -58,11 +58,10 @@ void loop() {
|
|||
Serial.write(" ");
|
||||
Serial.write("C");
|
||||
Serial.write(" ");
|
||||
Serial.write("99");
|
||||
|
||||
|
||||
Serial.write("99\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
delay(1000);
|
||||
}
|
||||
|
|
|
@ -20,9 +20,6 @@ void setup() {
|
|||
|
||||
void loop() {
|
||||
|
||||
Serial.write("\n");
|
||||
delay(1000);
|
||||
|
||||
if ( Serial.available() > 0) {
|
||||
inQuery = Serial.read();
|
||||
|
||||
|
@ -42,9 +39,9 @@ void loop() {
|
|||
Serial.write(" ");
|
||||
Serial.write("TSS");
|
||||
Serial.write(" ");
|
||||
Serial.write("99");
|
||||
|
||||
Serial.write("99\n");
|
||||
}
|
||||
}
|
||||
|
||||
delay(1000);
|
||||
}
|
||||
|
|
|
@ -22,9 +22,10 @@ ser.flush()
|
|||
while True:
|
||||
if ser.in_waiting > 0:
|
||||
line = ser.readline().decode('utf-8', errors='replace').rstrip()
|
||||
#time.sleep(0.1)
|
||||
print(line)
|
||||
ser.flush()
|
||||
break
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
quit()
|
||||
|
|
Loading…
Reference in a new issue