Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. timers or appending

timers or appending

Scheduled Pinned Locked Moved C / C++ / MFC
questioniotdata-structures
4 Posts 2 Posters 0 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
    chaitanya22
    wrote on last edited by
    #1

    I should recieve an array of bytes of lenght 212 at a time from the sensor, but am recieving some bytes ie,set X[] at one time and some bytes i,e set Y[] of different lengths. how could i set the sensor for not having "delay" in sending the set of bytes[212]. OR how can i assign Set X bytes to one array and Set Y bytes to another array, so that i could append them?? chaitu

    C 1 Reply Last reply
    0
    • C chaitanya22

      I should recieve an array of bytes of lenght 212 at a time from the sensor, but am recieving some bytes ie,set X[] at one time and some bytes i,e set Y[] of different lengths. how could i set the sensor for not having "delay" in sending the set of bytes[212]. OR how can i assign Set X bytes to one array and Set Y bytes to another array, so that i could append them?? chaitu

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      How do you receive those bytes ? Why are you getting delays ? Be more explicit.

      C 1 Reply Last reply
      0
      • C Cedric Moonen

        How do you receive those bytes ? Why are you getting delays ? Be more explicit.

        C Offline
        C Offline
        chaitanya22
        wrote on last edited by
        #3

        BYTE x[1024]; l= recv(); printf("Length: %i \n", l); for(i=0;i

        C 1 Reply Last reply
        0
        • C chaitanya22

          BYTE x[1024]; l= recv(); printf("Length: %i \n", l); for(i=0;i

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          I just don't see what you are talking about. What is the problem with storing these values in an array ? The varying size ? Then you can use a vector from the STL, it will let you add and retrieve elements in the array without worying about the size. BTW, use the pre or code tags when you post code.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups