Did you debug your code to be sure this write() function is called and your byte array is sent to the port?

Quote Originally Posted by Bfrancesco View Post
... the real problem is that I'm not understing how i can handle the "BYTE*" and how i can use it in "port.write" to send the bytes.
What "BYTE*" do you mean?