0
我想樹莓派用的XBee上UART頭ttyAMA0連接樹莓派的XBee serial.Serial超時不工作的Python
都連接和我得到+++的響應 - >確定
的XBee是模式2 API
s = serial.Serial("/dev/ttyAMA0", 9600, timeout=5)
xb = ZigBee(s)
xb.send('at', command="SH")
print "working till now"
ansh = xb.wait_read_frame()
print "don't wait here there is a time out"
我得到的輸出
工作至今
和代碼無二無限等待
請幫