M mantech New Member Licensed User Longtime User Aug 3, 2011 #1 Android Serial tutorial :sign0085: in this demo, the code wait for an end of line character (chr(10)), how i get the input string or character without end of line character ? I will each character received! regards MT
Android Serial tutorial :sign0085: in this demo, the code wait for an end of line character (chr(10)), how i get the input string or character without end of line character ? I will each character received! regards MT
Erel B4X founder Staff member Licensed User Longtime User Aug 4, 2011 #2 You should use TextReader.Read instead of TextReader.ReadLine. Basic4android - Files (Core) Read a single character each time. You should do it in a loop while TextReader.Ready is true. Another option which would is usually better is to use AsyncStreams instead of polling the port. Upvote 0
You should use TextReader.Read instead of TextReader.ReadLine. Basic4android - Files (Core) Read a single character each time. You should do it in a loop while TextReader.Ready is true. Another option which would is usually better is to use AsyncStreams instead of polling the port.
M mantech New Member Licensed User Longtime User Aug 4, 2011 #3 thank you Do you have an example for AsyncStreams with a Bluetooth Connection? regards MT Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 4, 2011 #4 There is no real difference between using AsyncStreams with a Bluetooth connection or a TCP/IP connection. So the tutorial is relevant. There are several related threads here: Basic4android Search: AsyncStreams Bluetooth Upvote 0
There is no real difference between using AsyncStreams with a Bluetooth connection or a TCP/IP connection. So the tutorial is relevant. There are several related threads here: Basic4android Search: AsyncStreams Bluetooth