Content:
- Methods

The USBSerial component can be used to communicate with other USB devices connected to yours.

usb = app.CreateUSBSerial( baudRate, dataBits, stopBits, parity, device ) → app object: USBSerial

The default constructor values are:
baudrate: 9600
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

Methods

The following methods are available on the USBSerial object:

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