B4R Question B4r Serialization Array out of bounds

Discussion in 'B4R Questions' started by rodmcm, Jul 4, 2019.

  1. rodmcm

    rodmcm Active Member Licensed User

    I have finally captured an out of bounds event.. I am sending an array of integers from a B4a App to an ESP32 using B4r Serialization class and prefix mode astreams.

    In one case I send a command 2,18 and the rest in zeros. This is a key(2 = command) and a command number (18) that requests a response from the ESP32 to validate the communications. In this case standard Bluetooth.


    This is the error captured from logs in the astream_data input showing the buffer size and the hex of the buffer. (The Running Profile count is an internal log)
    You can see on the last entry that there are 4 bytes 00 placed after the 7E header, which must be before transmission, and which results in the fail at the reception end.

    I have looked at B4r serialization class program but out of my depth here. Can anyone suggest what is going wrong.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please post it as text.
  3. rodmcm

    rodmcm Active Member Licensed User

    It was a screen capture... sorry for that
  4. rodmcm

    rodmcm Active Member Licensed User

    Any ideas Erel? Getting these errors frequently
  5. Erel

    Erel Administrator Staff Member Licensed User

    Post the logs as text. This will allow us to try to deserialize the values and better understand what happens.

    It would be also simpler if you post the relevant code.
  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