billhsu / jUART

Cross platform browser plugin for serial port communication from JavaScript
202 stars 76 forks source link

Data Received is truncated #16

Closed fernandobarron closed 9 years ago

fernandobarron commented 9 years ago

When sending a string of more than 512 characters the recv function only gets the first 512 characters and then stops receiving, is there any way to increase reading ability?

billhsu commented 9 years ago

Will look into it.

Sent from Sony XPERIA On Jan 29, 2015 8:19 AM, "Fernando Barrón Bucio" notifications@github.com wrote:

When sending a string of more than 512 characters the recv function only gets the first 512 characters and then stops receiving, is there any way to increase reading ability?

Reply to this email directly or view it on GitHub https://github.com/billhsu/jUART/issues/16.

fernandobarron commented 9 years ago

I resolved my problem! Found a constant in SerialAPI.h file static const int max_buffer_length = 512; and change the value to 2048, then I recompiled the project and now i can read more than 512 characters.