Message374788
I was doing a small serial communication system using pyserial. when I done the script on a .py file, it not worked. but when I opened
the python console and writed line by line the same code of the .py file, it worked.
the .py file:
import serial
ser = serial.Serial('com5')
ser.write('L'.encode())
ser.close()
it not worked.
on the python console:
python>> import serial
python>> ser = serial.Serial('com5')
python>> ser.write('L'.encode())
python>> ser.close()
It worked.
PySerial 3.4 |
|
Date |
User |
Action |
Args |
2020-08-04 02:46:30 | JDev | set | recipients:
+ JDev |
2020-08-04 02:46:30 | JDev | set | messageid: <1596509190.34.0.229885984319.issue41469@roundup.psfhosted.org> |
2020-08-04 02:46:30 | JDev | link | issue41469 messages |
2020-08-04 02:46:30 | JDev | create | |
|