The USBSerial component can be used to communicate with other USB devices connected to yours.
usb = app.CreateUSBSerial(
baudRate=9600,
dataBits=8,
stopBits=1,
parity=0,
device? )
→ app object: USBSerial
The default constructor values are:
baudrate: 9600
dataBits: 8
stopBits: 1
parity: 0
To find out more about RTD and DTR or USB serial at all visit Wikipedia: RS-232
Known to work: Nexus7, GalaxyS3/S4, ExperiaZUltra, TescoHudl
Dont work: Nexus4, GalaxyS1, AsusMemo
Properties
The following properties are available on the USBSerial object:
Methods
The following methods are available on the USBSerial object:
Batch(
properties )
GetCD() → Boolean
GetDTR() → Boolean
GetRTS() → Boolean
GetType() → String: “USBSerial”
IsConnected() → Boolean
SetDataMode(
mode )
SetMaxRead(
bytes )
SetMaxWrite(
bytes )
SetTimeout(
ms )
Start()
Stop()