Android Question Arduino ad serial ...

Spectre

Active Member
Licensed User
Longtime User
Hi!

I am creating a program to control a motor to arduino. Every time I run the code remains locked (without error) as if he could not read the buffer ... Ideas

B4X:
Sub Timer_buffer_Tick
       
              If connected Then
       
                 text_serial_out.WriteLine("0 0" )'
                 text_serial_out.Flush             
                 If text_serial_in.Ready Then 'check if there is any data waiting to be read
                      lbl_MotorPos.text=text_serial_in.ReadLine
                      lbl_MotorPosition.Text=lbl_MotorPos.text               
                 End If
              End If
 

Spectre

Active Member
Licensed User
Longtime User
Hi
you happen to have an example with the serial?
I also noticed that after upgrading to 4.4 kitkat no longer work applications using the magnetic sensor !!!
Possible bug?
 
Upvote 0
Top