GetComState DCB setting EvtChar
jj
jj at void.si
Mon May 14 04:22:56 EDT 2001
Hi, I am working with serial port, reading char by char is working,
but I want to read entire line (my device always sends data delimited
with \r), Setting dbd.EvtChar raises Exception
dcb = GetCommState( self._handle )
dcb.BaudRate = 19200
dcb.EvtChar = 13
-- execption
dcb.EvtChar = 13
TypeError: illegal argument type for built-in operation
if I change param to : dcb.EvtChar = '\r'
SystemError: bad memberlist type
Thanks for help in advance.
JJ
More information about the Python-list
mailing list