Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

Android Mode - Serial Communication - Andruino

$
0
0

Hi, nice to meet you.

I want (Arduino) ------- (Smartphone) Serial connection.

Processing 3.2.1. Android Mode 3.0.1

> API 6.0

======================================================================

import io.inventit.processing.android.serial.*; //ANDROID

Serial myPort;      
String inString=""; 

void setup() {

  myPort = new Serial(this, Serial.list(this)[0], 38400); 
  myPort.bufferUntil(10);
}

//===========INCOMING DATA FROM THERMOSTAT=============
void serialEvent(Serial myPort) { 


  try {
    inString = myPort.readString();

  }
  catch(RuntimeException e) {

  }


}

====================================================================== **Error msg : **

Processing - Android USB Serial Error.

Q


Viewing all articles
Browse latest Browse all 941

Trending Articles