Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Spanish
  4. Mandar array int por puerto serie
Qt 6.12 LTS is out! See what's new in the release blog

Mandar array int por puerto serie

Scheduled Pinned Locked Moved Solved Spanish
2 Posts 1 Posters 986 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xedig
    wrote on last edited by
    #1

    Hola amigos, queria preguntarles como puedo mandar un array "quint8" con QSerial por un puerto COM.
    Gracias de antemano.

    1 Reply Last reply
    0
    • X Offline
      X Offline
      Xedig
      wrote on last edited by
      #2

      Para QSerialPort el metodo es declarar el array con QByteArray, por ejemplo:

      serial= new QserialPort
      QByteArray vector[]{};
      vector[1].setNum(23);
      serial->write(vector[1]);

      Me ha costado un poquito pero al fina encontre la forma en la ayuda, un saludo para todos.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved