Skip to content

140 Character Limit #34

Answered by ggerganov
mark-bakermd asked this question in Q&A
Apr 26, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Currently, the actual limit for the message length is 183 bytes. The reason is that we append 40% ECC bytes at the end of the message and the total length becomes 1.4*183 = 256. At this point, the error correction library that is used stops working.

If you want to send longer messages than this, you need to make the following changes:

  1. increase kMaxLengthVarible to desired length
  2. increase kMaxDataSize to at least 1.4*kMaxLengthVarible
  3. use 2 bytes to encode the message length (currently, ggwave uses just 1 byte)
  4. extend the ECC library to support more than 256 byte messages

Points 1, 2 and 3 are easy to solve using the following patch:

diff --git a/include/ggwave/ggwave.h b/include/ggwave/…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mark-bakermd
Comment options

Answer selected by mark-bakermd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants