'ACJacques transmit & receive serial working tested up to 115200 tested also to connect to onboard PC Bluetooth port COM9 with success
'but could not connect to COM15 (TTl-USB Serial converter) although it is available for other programs.
INPUT "COM port number #", port$
'any COM port number available 'not ANY. See above 'receive data in buffer when LOC > 0
PUT #1, , bytestr
'echo on same COM port PRINT bytestr;
'print in the QB64 screen 'transmit (send) 'send by keyboard
IF k
>= 32 THEN 'ignore control key codes PRINT k$;
'print in the QB64 screen bytestr = k$
PUT #1, , bytestr
'send to COM port