Skip to content Skip to sidebar Skip to footer

Iron Python Error: Expected Or Bytearray, Got For Serial Comm

Unable to understand this: When I run using python shell it works but doesn't: when invoked using Iron python. It throws above error C#: scriptEngine.ExecuteFile(path); var test

Solution 1:

Looks like you're hitting a bug in IronPython. In the meantime you can workaround it by using:

ser.write(bytes(message.encode('utf-8')))

Post a Comment for "Iron Python Error: Expected Or Bytearray, Got For Serial Comm"