Using thonny IDE, apparently the pyserial module is not working for me, any suggestions?

30 views Asked by At

This is the problem I recieve when it is run:

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

The code is:

import serial

connection = serial.Serial('COM3', 115200)

while True:
    data = connection.readline()
    print(data)

I was expecting it to run.

0

There are 0 answers