- be sure to change the IP address
see line 1239:
private String myIP = "172.16.244.95"; // this needs to be the IP of the computer sending to...
- OSC data is sent constantly but will null values until 'START REAL-TIME' is active
- open Notch Tutorial Android app
- turn on 2 Notches (# from real_time config file)
- tap 'CONNECT TO NETWORK'
- tap 'REAL-TIME' checkbox
- tap 'INIT 2' (from capture menu)
- tap 'CONFIGURE REAL-TIME'
- tap 'START REAL-TIME' (Notch visualization will open + OSC will start sending correct data)
- put imports into the top of mainFragment.java file
import java.net.*;
import java.util.*;
import com.illposed.osc.*;
- include illposed Java OSC lib in dependencies block of the app/build.gradle file
compile 'com.illposed.osc:javaosc-core:0.4'
- put the OSC thread (the good stuff) add the bottom of mainFragment.java
private Thread oscThread = new Thread() {
…
}
- start the OSC thread when mainFragment is created (inside the onCreate function of mainFragment.java)