I am using the USBSerial 2.30 Version inside an activity. This work great.
But whenever I move same code to a code- or a service module, I dont get any reception event.
I mean that the function shown next is never called again:
But whenever I move same code to a code- or a service module, I dont get any reception event.
I mean that the function shown next is never called again:
B4X:
Sub astreams_NewData (Buffer() As Byte)
Dim oByte As String
oByte = BytesToString(Buffer, 0, Buffer.Length, "UTF8")
bytdata = bytdata & oByte
End Sub