Difference between revisions of "Serialport"
From Lianjapedia
Barrymavin (Talk | contribs) |
Barrymavin (Talk | contribs) (→Properties) |
||
Line 47: | Line 47: | ||
|valign="top"|RW | |valign="top"|RW | ||
|valign="top"|Numeric | |valign="top"|Numeric | ||
− | |valign="top"|The flowcontrol. | + | |valign="top"|The flowcontrol. <br> |
+ | 0 No flow control. <br> | ||
+ | 1 Hardware flow control (RTS/CTS). <br> | ||
+ | 2 Software flow control (XON/XOFF). <br> | ||
|- | |- |
Revision as of 08:24, 13 May 2024
Under development
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Available in Lianja 9.7.
Properties
This class supports the following properties:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
baudrate | RW | Numeric | The baudrate |
breakenabled | RW | Logical | The breakenabled state. |
databits | RW | Numeric | The number of databits |
stopbits | RW | Numeric | The number of stopbits |
parity | RW | Numeric | The parity bits |
flowcontrol | RW | Numeric | The flowcontrol. 0 No flow control. |
portname | RW | character | The portname e.g com3 |
dataterminalready | RW | Logical | The DTR state. |
requesttosend | RW | Logical | The RTS state |
Methods
This class supports the following methods:
Method | Args | Description |
---|---|---|
availablePorts | None | Returns a comma separated list of ports available |
readData | None | Reads data. Returns as a character string. |
writeData | Character | Writes the specified character string |
open | None | Open the serial port specified in portname |
Events
This class supports the the following events:
Event | Args | Description |
---|---|---|
dataavailable | None | Occurs when data is available |