Content:
- Properties
- Methods

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


Note: this application only works on devices that support OTG and allow access to external serial devices.
Known to work: Nexus7, GalaxyS3/S4, ExperiaZUltra, TescoHudl
Dont work: Nexus4, GalaxyS1, AsusMemo

Properties

The following properties are available on the USBSerial object:

dataObject: { key, value }

Methods

The following methods are available on the USBSerial object:

GetCD() → Boolean
GetDTR() → Boolean
GetRTS() → Boolean
GetType() → String: “USBSerial”
IsConnected() → Boolean
Method( name, types?, p1?, p2?, p3?, p4? ) → all types
Start()
Stop()