Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
brccosta
brccosta's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Simple read in Java
[5 Replies]
19-Nov-2012 06:41 AM
Forum:
Contributed Library Questions
Hi,
I'm trying to develop a simple example in Netbeans: just read an eml and show the result. My code:
import eeml.*;
import processing.core.PApplet;
@SuppressWarnings("serial")
public class ExempleEEML extends PApplet {
DataIn datain;
@Override
public void setup() {
datain = new DataIn(this, "localhost:5210", 1000);
}
@Override
public void draw() {
System.out.println(datain.getValue(0));
}
public void onReceiveEEML(DataIn d) {
float myVariable = d.getValue(0);
System.out.println(myVariable);
}
}
Main:
public class MainClass {
public static void main(String[] args) {
ExempleEEML e = new ExempleEEML();
e.setup();
}
}
But I had just this message: "New DataIn created attempting to access localhost:5210 every 1000 milliseconds."
I could't see the values...
Please, could someone help me?
«Prev
Next »
Moderate user : brccosta
Forum