Closed Palatis closed 6 years ago
pretty much what was discussed in https://github.com/thijse/Arduino-CmdMessenger/pull/18, without the .Net 3.5 backport.
okay, unity fails to read the first character of each transmission, I had to workaround the problem by sending an extra newline before every command.
that's a dirty workaround, i think i'll keep it in my own repo.
remove unnecessary dependencies:
and remove
System.Windows.Forms
fromCommandMessenger
, keep it a pure library project with minimum dependency.Also, because we removed
System.Windows.Forms
fromCommandMessenger
, create aCommandMessenger.Utils
project with a helper class to check forInvokeRequired
, andInvoke()
the work on proper thread.