Compare commits
No commits in common. "5c68e943102cf4d1e77b74a41242013260392300" and "a70d4734b7aad1870714cdb26ca108f449e5e67b" have entirely different histories.
5c68e94310
...
a70d4734b7
3 changed files with 14 additions and 11 deletions
|
@ -58,10 +58,11 @@ void loop() {
|
|||
Serial.write(" ");
|
||||
Serial.write("C");
|
||||
Serial.write(" ");
|
||||
Serial.write("99\n");
|
||||
Serial.write("99");
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
delay(1000);
|
||||
}
|
||||
|
|
|
@ -20,6 +20,9 @@ void setup() {
|
|||
|
||||
void loop() {
|
||||
|
||||
Serial.write("\n");
|
||||
delay(1000);
|
||||
|
||||
if ( Serial.available() > 0) {
|
||||
inQuery = Serial.read();
|
||||
|
||||
|
@ -39,9 +42,9 @@ void loop() {
|
|||
Serial.write(" ");
|
||||
Serial.write("TSS");
|
||||
Serial.write(" ");
|
||||
Serial.write("99\n");
|
||||
Serial.write("99");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
delay(1000);
|
||||
}
|
||||
|
|
|
@ -21,11 +21,10 @@ ser.write(serial.to_bytes(com))
|
|||
ser.flush()
|
||||
while True:
|
||||
if ser.in_waiting > 0:
|
||||
line = ser.readline().decode('utf-8', errors='replace').rstrip()
|
||||
print(line)
|
||||
ser.flush()
|
||||
break
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
line = ser.readline().decode('utf-8', errors='replace').rstrip()
|
||||
#time.sleep(0.1)
|
||||
print(line)
|
||||
ser.flush()
|
||||
break
|
||||
|
||||
quit()
|
||||
|
|
Loading…
Reference in a new issue