2021年2月2日星期二

AttributeError: module 'serial' has no attribute 'reset_input_buffer'

Hey guys I have a problem with the command 'rest_input_buffer'. serial.Serial for example works. I've got the latest version of Thonny 3.3.3, Python 3.7.3 and pyserial version 3.5 The important input:

import serial  ser = serial.Serial('/dev/ttyACM0',baudrate = 9600, timeout = 1)  serial.reset_input_buffer()  

This is my output:

AttributeError: module 'serial' has no attribute 'reset_input_buffer'  

Any ideas? I already uninstall pyserial and installed it again, same with python. I get a similiar error with the former command 'flushInput()'

https://stackoverflow.com/questions/66020604/attributeerror-module-serial-has-no-attribute-reset-input-buffer February 03, 2021 at 10:58AM

没有评论:

发表评论