Serial Communication Error - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Serial Communication Error (/thread-15937.html) |
Serial Communication Error - AlphyOuseph - Feb-07-2019 Hi, I am new to python. I was facing an issue while using serial communication. I am sending 1 byte data from a device to the raspberry pi board using serial to USB converter. The error I was getting is given below Attribute error: 'Serial' object has no attribute 'inwaiting' The program is given below, import serial ser = serial.Serial(port='dev/ttyUSB0',baudrate=9600) try: data = ser.read() response=ser.read(ser.inwaiting) print(data) finally: ser.close() Please reply as soon as possible Thank you, Alphy RE: Serial Communication Error - DeaD_EyE - Feb-07-2019 ser.inWaiting() not ser.inwaiting .Use proper code tags in this forum. |