6 parameter is how many bytes to read from the serial......its not picking up the ABO
line=ABOABLINK<
ERROR!! line=ABLINK<
something is wrong as the code isnt working as it should
Read line2=
Read line=ABL <<<<<<<<< Read ABL and newline
<
ARD STATUS: ALL LEDS BLINKING
Read line2= <<<<<<<<<<<<< Read an empty String
COM STATUS: ALL LEDS BLINKING
Read line=ABOABL <<<<<<<<<< Read ABOABL and newline ??? Why isn't there a newline between ABO and ABL?
<
ARD STATUS: ALL LEDS BLINKING
Read line2= <<<<<<<<<< Read an empty String
some sort of timing issue
Java reads arduino feedback
Dave Tolls wrote:I may be missing something, but what class is the arduino object?
Is there an API somewhere for it?
I'm curious what the serialRead method says it does.
String serialRead(int limit) - returns a string containing as many readings as the value of limit. recommended for reading. Please note that this function is implemented in a SEMI_BLOCKING manner. This means that this function will NOT wait for as many characters as specified in the limit. Instead, think of this function as one that reads AT LEAST one and AT MOST limit number of characters from the serial buffer. The SEMI_BLOCKING behaviour ensures that the thread waits for at least one character, but not for all of them.
Scott Eric Catalano wrote:@Paul Clapham: What you're saying is that I need to set it up to poll for data?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |