Peter Finch
Member
Hi everyone - I am very new to B4A (competent in VB) and am struggling to implement a 3 channel scope (to display ECGs) from a Buetooth data stream from an Arduino with HC-06 and an Analog front end. I know my Arduino side it working well and sends each channel as text with a header "P1 " then a number/reading and a \r terminator (chr(13), (ie: Data "P1/2/3 number\r" ) I have successfully implemented it in RoboRemo and it is smooth and fast. - I am now trying to implement it in B4A and the trace works fine but is very erratic and slow and freezes often then catches up later - as one could expect for an asynchronous stream. I am of course using AsyncStreamsText. How can I make it smooth and fast? Where have I gone wrong?