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(" ");
|
||||||
Serial.write("C");
|
Serial.write("C");
|
||||||
Serial.write(" ");
|
Serial.write(" ");
|
||||||
Serial.write("99\n");
|
Serial.write("99");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
delay(1000);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,9 @@ void setup() {
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
||||||
|
Serial.write("\n");
|
||||||
|
delay(1000);
|
||||||
|
|
||||||
if ( Serial.available() > 0) {
|
if ( Serial.available() > 0) {
|
||||||
inQuery = Serial.read();
|
inQuery = Serial.read();
|
||||||
|
|
||||||
|
@ -39,9 +42,9 @@ void loop() {
|
||||||
Serial.write(" ");
|
Serial.write(" ");
|
||||||
Serial.write("TSS");
|
Serial.write("TSS");
|
||||||
Serial.write(" ");
|
Serial.write(" ");
|
||||||
Serial.write("99\n");
|
Serial.write("99");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delay(1000);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,10 +22,9 @@ ser.flush()
|
||||||
while True:
|
while True:
|
||||||
if ser.in_waiting > 0:
|
if ser.in_waiting > 0:
|
||||||
line = ser.readline().decode('utf-8', errors='replace').rstrip()
|
line = ser.readline().decode('utf-8', errors='replace').rstrip()
|
||||||
|
#time.sleep(0.1)
|
||||||
print(line)
|
print(line)
|
||||||
ser.flush()
|
ser.flush()
|
||||||
break
|
break
|
||||||
|
|
||||||
time.sleep(1)
|
|
||||||
|
|
||||||
quit()
|
quit()
|
||||||
|
|
Loading…
Reference in a new issue