B4R Question B4r Serialization Send/Receive problems

Discussion in 'B4R Questions' started by rodmcm, Oct 30, 2018.

  1. rodmcm

    rodmcm Member Licensed User

    This is a demo cut down of a larger program. Basically I am sending multiple data arrangements (all ints) from an ESP32 to B4j or B4A via an AP network using B4r Serialization

    The method is a send array with SendArray(0) containing a key to the info type, data type(s) or command(s) type being sent. In this demo I'm just sending 20 simple variables with the key 3. (Later there will be more values included in each send package)

    At the receiving end I only ever see 2 of the sent MV variables , the 0 and 13 index.. i have tried delays between sends and other combinations with no success... Any ideas as to why this is please

    The B4j program shows the received data, initiated from the Send MV Array pushbutton

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

  3. rodmcm

    rodmcm Member Licensed User

    Thanks that worked

    Why does it work?
    I've read that you include a header but you must also hold transmission connection until complete
  4. Erel

    Erel Administrator Staff Member Licensed User

    Without prefix mode messages will be split or merged. Prefix mode takes care of it internally by adding the message length to each message.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice