iOS Question serial interface

MList

Active Member
Licensed User
Hi,
I am working with a device which sends data via cable.
How can I do it with B4i? Whats the serial lib?
B4J:
B4X:
Dim AStream As AsyncStreams
Private com As Serial
com.Initialize("com")
com.Open(cmbText.SelectedItem)
com.SetParams(115200,8,1,0)
AStream.Initialize(com.GetInputStream,  com.GetOutputStream, "Astream")

B4a:
B4X:
Private com As felUsbSerial
Public manager As UsbManager
com.Initialize2("Serial",device,-1,"FTDISerialDevice")
com.BaudRate = 115200
com.DataBits = com.DATA_BITS_8
com.Parity = com.PARITY_NONE
com.StopBits = com.STOP_BITS_1
com.StartReading
 
Top