Hi
I´m trying to send a String in firmata by writing and read this in processing but i get this errors
"The method available() from the type Arduino is not visible"
"The function readString() does not exist"
in Processing
I can see the String in arduino serial monitor so the problem is in Processing and guess the problem is the code in processing or is it in the
attaches file cc.arduino.* or the file processing.serial.* ?
I can read from the arduino ports without any problem.
Firmata code
Firmata.sendString("Hello");
Processing code
myPort = new Arduino(this, Arduino.list()[0], 115200);
void Draw(){
while (myPort.available() > 0){
String Reading = myPort.readString();
println(Reading);
}
}
like I wrote, I guess the problem is the code in processing or is it in the
attached file cc.arduino.* or the file processing.serial.* ? but i don't know where ?
does this command work with the arduino library or am I doing something wrong with the command ?
I am new with serial ports and don't really know where to start debugging this issue.
Yes, you are trying to call methods that do not exist.
is it in the attached file cc.arduino.* or the file processing.serial.* ?
No. It is in your code.
does this command work with the arduino library
Does which command work with which Arduino library? If "the arduino library" is the one in Processing, you need to check the documentation (or examples) for the methods that the arduino object implements (and exposes).
I am new with serial ports and don't really know where to start debugging this issue.
It isn't a serial port issue. You are trying to call methods on the Arduino object that do not exist. The Arduino object you are creating is not a serial object. It is an implementation of the Firmata protocol for Processing.