Arduino-SerialCommand icon indicating copy to clipboard operation
Arduino-SerialCommand copied to clipboard

buffer length

Open robitmoh opened this issue 9 years ago • 2 comments

I cannot pass long parameter like "set_MLT_sensor 5E72631403A4FFFF" because a buffer size is short I think to change from line 151 in SerialCommend.cpp if (bufPos > SERIALCOMMANDBUFFER-1) { bufPos=0; // wrap buffer around if full
Serial.println("Short SERIALCOMMANDBUFFER"); }

robitmoh avatar Jan 30 '16 21:01 robitmoh

Hi all, I've been using this program and would like to know how and if possible to extend the SERIALCOMMANDBUFFER as this is limiting me to make my program evolve. the mains problem is that I'm giving something like 'P 130 20 22 39 1 3' and it is not doing anything but if I do 'P 130 2 3 1 1 3' it is working which is why i think it is an issue of the buffer. I was thinking to use two Scmd.addCommand to allow myself to pass all the information i want but not very clean solution. Thanks in advance for the support.

cgerome avatar Sep 22 '18 19:09 cgerome

Hello, just edit lines (37, 39) in SerialCommand.h

ghost avatar Sep 29 '18 06:09 ghost