Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. 32-bit "ASCII/Unicode" values, sent over UART, to Int
Forum Updated to NodeBB v4.3 + New Features

32-bit "ASCII/Unicode" values, sent over UART, to Int

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 187 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    ConnorOsborn
    wrote on last edited by
    #1

    I have a device that is sending a continuous stream of data. Packets are in the form of 28 bytes, however it needs to be interpreted as 7 32 bit integers. I have a parsing algorithm that takes in the 28 bytes and organizes them into an array where each index holds the corresponding 4 bytes. But I cant correctly interpret them a 32 bit integers. I've tried parseInt() and some other functions, but they either result in NaN or 0.
    I'm trying to keep all my code in QML and not attempt to edit the C++ libraries I'm using.

    How can I interpret 4 bytes/chars as a 32 bit int in QML?

    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 Extensions
    • Unsolved