Shouldn't you be setting the options before opening the port? And I would suggest to avoid making the port object a global variable.
Shouldn't you be setting the options before opening the port? And I would suggest to avoid making the port object a global variable.
Bookmarks