Hello, can someone advise how to correct the following code:
This gives me compilation error.
Cheers.
B4X:
Sub AStream_NewData (Buffer() As Byte)
Dim aaya() As Byte
aaya=BytesToString (Buffer, 0, Buffer.Length, "UTF8")
If aaya ="A" Then
Btn1.Color=Colors.RGB(128,255,128)
Else
Btn1.Color=Colors.RGB(255,128,128)
End If
End Sub
This gives me compilation error.
Cheers.