B4J Question handshaking control on serial (Jserial)

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
How I can get a total control of a serial (Jserial) with handshaking control?
I mean of course "Hardware" and "Software" (xon-xoff) control.
Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
Is correct this for hardware control and no control?

B4X:
Dim jo As JavaObject = serial
jo.GetFieldJO("sp").RunMethod("setFlowControlMode", Array(Bit.Or(1, 2)))  'hardware control

Dim jo As JavaObject = serial
jo.GetFieldJO("sp").RunMethod("setFlowControlMode", Array(0))  'no control

Thanks
 
Upvote 0
Top