37,743
社区成员




try:
child.sendline("? c1")
tt = child.readline()
print(tt)
child.write("? c1\r")
tt1 = child.readline()
print(tt1)
child.expect('\r\n',timeout=5)
print("\r\n\r\n Tempurature: {temp} {temp1}".format(temp = child.before,temp1 = child.after))
except:
msg_show("Show temp fail due to time