Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. serialport-byte
    Log in to post

    • UNSOLVED Reading UART (RS485) with Qt
      Mobile and Embedded • c++ qt serial port serialport-byte • • SheldonC  

      8
      0
      Votes
      8
      Posts
      101
      Views

      @RunThiner There's no need for such a loop. QSerialPort already provides an asynchronous API and if you really want to wait for data to be available, there's a blocking API for that as shown in the QSerialPort details.
    • Error in the value read from serialPort->bytesAvailable()
      General and Desktop • serialport-byte • • sdcr  

      2
      0
      Votes
      2
      Posts
      502
      Views

      @sdcr said: (bites = sp->bytesAvailable()) Although it should return a reference to bites, it is not good coding practice imho. http://en.cppreference.com/w/cpp/language/operator_assignment