How to handle OSC status changes (and possibly transfer images) ?
in
Contributed Library Questions
•
3 months ago
I'm using OSC to communicate between a computer(acts as server) and an android device(acts as client).
So far so good, although sometimes the osc messages don't reach the other side all the time.
I'd like to get a better picture of what's going on but not sure how.
Looking at the documentation I've seen the OscEventListener interface and OscProperties,
but using them doesn't seem to change anything in the way things work.
Here's one setup example:
-
OscProperties props = new OscProperties((OscEventListener)this);//my PApplet subclass implements this interface
props.setDatagramSize(2097152);//setup a 2MB data buffer
props.setListeningPort(3200);
props.setNetworkProtocol(OscProperties.TCP);//UDP might be limitted to 64K of data ?
oscP5 = new OscP5(this,props);
I was expecting oscStatus to be called, but it doesn't seem to be called at all.
Am I doing this wrong ? How can I check the status (and if there are problems, address them) ?
1