Sending data to inputline with jshPushIOCharEvent

Posted on
  • I have to send a text of 60 kb to inputline but the maximum size of the IOBUFFERMASK is 127 so it just send the 127 events
    Is there any idea to send the whole text without changing the fact of that 127 limitation ??

  • Hi,

    Do you have more information about what you're trying to do? And on which platform?

    There isn't a hard limit in input line size - IOBUFFERMASK is related to the amount of characters that can arrive while Espruino is busy processing other things. If Espruino is idle - even a little - during the period data is received then the characters on the input line will be added to a JsVar variable and can be accepted right up until all available RAM has been used.

    However on many platforms, ensuring there is 60kB of RAM free could be a stretch so it may be some other solutions needs to be considered (even if it's compressing the received data on the fly).

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Sending data to inputline with jshPushIOCharEvent

Posted by Avatar for user96186 @user96186