The API provieds an easy way to access remote experiment sensors data
If you don't know what Phyphox is, find it out on its official website
String host = "address";
int port = 8080;
PhyphoxClient client = PhyphoxClient.connect(host, port);
// Registering sensors from which we want to fetch data
PhyphoxLight light = (PhyphoxLight) client.registerSensor(PhyphoxSensors.LIGHT);
client.start();
while (client.update()) {
System.out.println("Light: " + light.getLight());
}
client.stop();
See another one example from the example folder