SNAP to VM interface fails for strings longer than 504 bytes

Issue #224 resolved
Turgut Guneysu created an issue
  • Here are two pics showing a 500byte Lorem… string with extra bytes added in front. At 504 it goes through and returns the set value. At 505 it fails.

    Corresponding header values are shown in the display for each message, truncated due to length.

Since MB sets vars correctly all the way to 1000 bytes, I am thinking the only other place where a glitch like this can happen is in the buffer Exchange within the Web Serial routines. 505 plus the headers are at the 511 byte boundary.

Maybe there is a 512 byte limit or something like that.

Comments (4)

  1. John Maloney repo owner

    The intended limit is 800 bytes. Just verified that that's the case. The limit is less than the 1k byte buffer size to allow room for additional messages in the output buffer.

  2. Log in to comment