Involt / Involt

Inject hardware interactions directly into HTML layout. Best for rapid prototyping.

Home Page:http://involt.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buffer overload in Arduino mega? (while using multiple involt.send functions at once)

ErniW opened this issue · comments

One of Involt users had issue with Arduino Mega and using almost all pins in device. There was a function that sends four LED pin states via involt.send at once but only two of them blinks correctly.

The problem occurs while sending the data from app to device - usually buffer issues are related to opposite direction but not in this case.

Somehow using javascript involt.send function works too fast (?) and the data is lost. I couldn't replicate this issue on any of my Arduino boards so maybe it's not a critical issue.

Maybe I should check communication parameters if they can fix this. The delay(10) in arduino sketch also somehow caused problem with reading.

It's still unknown for me why it happen. It was single case. I'm constantly aware about buffer overloads but they don't occur unless someone is trying to update too many things in almost real time.