Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Managed Code Encoding Serial Port

$
0
0

I found out.

You don't need to set any encoding to the port. Just define the data as i.e.

      01 ReadSerialNo             type Byte[] value x"04FF11EA". *> Read Transponder No.

and send it:

          invoke serialPort1::Write(ReadSerialNo, 0, 4)

of course 4 is BytesToWrite.

I was confused by intellisense which explains the "Write" function with "Text as String": Should be corrected.

Thanks anyway

Rainer


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>