1. First the need to open! It opens with parameters by default (9600 8 N 1)
2. Further, it is possible to configure:
bool setBaudRate (BaudRate baudRate);
bool setBaudRate
(const QString & baudRate
);
bool setBaudRate (BaudRate baudRate);
bool setBaudRate (const QString & baudRate);
To copy to clipboard, switch view to plain text mode
example:
...
AbstractSerial *MyDevice = new AbstractSerial();
MyDevice->setDeviceName("COM1");
MyDevice->setBaudRate(AbstractSerial::BaudRate19200);
...
...
AbstractSerial *MyDevice = new AbstractSerial();
MyDevice->setDeviceName("COM1");
MyDevice->open(QIODevice::ReadWrite | QIODevice::Unbuffered);
MyDevice->setBaudRate(AbstractSerial::BaudRate19200);
...
To copy to clipboard, switch view to plain text mode
PS:
use version 0.1.0
PSS:
if you find bugs or would anything is unclear - then write to me at e-mail
(email address in the source code)
Bookmarks