命令行讀取器同步範例

命令行讀取器同步 展示如何使用 QSerialPort class for receiving data synchronously over the selected serial port with the desired settings.

This command line reader sync example receives data synchronously over the selected serial port in a console, provided by the QSerialPort 類。

For receiving data synchronously over the selected serial port, use the read() or readAll() ,和 waitForReadyRead() 方法。

運行範例

要運行範例從 Qt Creator ,打開 歡迎 模式,然後選擇範例從 範例 。更多信息,拜訪 構建和運行範例 .

文件: