Hi,
I'm looking for a way to get a Processing script to read and write on /dev/rfcomm port (bluetooth). It is simply a serial protocol but the following code fails:
I can connect to /dev/rfcomm0 via PuTTY and communicate with no problem...
Any ideas would be great!
Thanks,
Bob
I'm looking for a way to get a Processing script to read and write on /dev/rfcomm port (bluetooth). It is simply a serial protocol but the following code fails:
- import processing.serial.*;
- Serial myPort;
- void setup() {
- println(Serial.list()); // this returns nothing
- String portName = "/dev/rfcomm0";
- myPort = new Serial(this, portName, 9600); // this causes a null pointer exception
- println(myPort);
- myPort.write('x');
- }
I can connect to /dev/rfcomm0 via PuTTY and communicate with no problem...
Any ideas would be great!
Thanks,
Bob