Android Question Bluetooth - TextWriter

Peter Augustin

Member
Licensed User
Longtime User
Hi all, i try develope my first application MCU with Android. My problem is with sending string from Android to MCU. I send from Android the string "LED1_status" and i wait for MCU's answer. The answer does not come. I think, the problem is, that MCU does not receive the string in one line. Could someone help me ?

B4X:
TextWriter1.WriteLine("LED1_status")
      TextWriter1.Flush
     
      If TextReader1.ReadLine = "0" Then
        btnLED1.Color = Colors.Red
      Else
        btnLED1.Color = Colors.Gray
      End If
 

Attachments

  • terminal_178.png
    terminal_178.png
    30.1 KB · Views: 258
Top