Open
Description
Hi, I have a question, I am unable to extract the exact error message when a communication fail.
how to extract the exception code, a parity error message, bad CRC, or timeout?
Currently I can get the generic error flag but I don't understand how to evaluate the different cause.
my current code look like that:
try :
list = CImod.read_registers(14,2,4)
except IOError:
print("COMs error occured")
thank you.
Metadata
Assignees
Labels
No labels