I need to use VBA to communicate over rs232 to a module which is expecting 8 bits frames. I use filewrite from API32
. I thought it would be enough to send as single byte but I see every byte gets out on the rs232 as two bytes. Precisely one sees that I get out the original byte converted to utf-16. For instance aiming to broadcast 0x35 I will actually send 0x33 as first byte and 0x35 as second one. The receiver will then not understand what was meant.
What I have tried:
No idea yet- I am considering using methods from systemio instead