v0.5.0 StandAlone: json Objects considered too large.

Issue #130 resolved
Turgut Guneysu created an issue

Hi John,

Even with only 16 variables, the corresponding JSON object generates “Script is too large to send to board” error. See issue #129 for the actual JSON object.

The object is created in response to the Mozilla WebThing Server request: http://localhost:6473/properties

Comments (4)

  1. John Maloney repo owner

    Unfortunately we’re currently limited to scripts that fit in 1k bytes because that’s the size of the receiving buffer on the board and the many long strings in Thing descriptions eat up that space quickly. A workaround is to break your script into several functions and call them sequentially. Unfortunately, we can’t easily increase the buffer size since we’re RAM constrained.

  2. Log in to comment