CO2 Meter SE-11 Handbuch - Seite 12

Blättern Sie online oder laden Sie pdf Handbuch für Mikrocontroller CO2 Meter SE-11 herunter. CO2 Meter SE-11 12 Seiten.

6/3/2019
ser.open()
ser.flush()
ser.write("\xFE\x04\x00\x03\x00\x01\xD5\xC5")
time.sleep(1.2)
timeout=0
while
ser.inWaiting()
time.sleep(0.1)
timeout
=
timeout
if
timeout
>
10:
print("timed out with no
break
resp
=
ser.read(ser.inWaiting())
ser.close()
print("size of response: "
if
len(resp)
>=
binascii.hexlify(bytearray(resp))
high
=
ord(resp[3])
low
=
ord(resp[4])
co2
=
(high*256)
print(str(co2))
Contact us: We're here to help!
If the troubleshooting guide above doesn't help you solving your problem or for more
information, please contact us using the information below.
CO2Meter, Inc.
131 Business Center Drive
Ormond Beach, FL 32174
Phone: 386-872-7665 | Fax: 866-422-2356
<=
0:
+
1
data")
+
str(len(resp)))
7:
+
low
(386) 256-4910 (M-F 9:00am–5:00pm EST)
www.CO2Meter.com
See CO2Meter, Inc. Terms & Conditions at:
www.CO2Meter.com/pages/terms-conditions
README.md
12/12