Routing data with a process directive times out
When I submit a data route after connection that contains a processing step the commit times out with the "java.util.concurrent.TimeoutException: Adding a data route timed out after 7000ms" This happens on both my RPRO and CPRO devices.
The following code times out.
gyroCtrllr.routeData()
.fromYAxis()
.process(new Maths(Maths.Operation.ADD, 0))
.stream("pulseStream")
.commit().onComplete(new AsyncOperation.CompletionHandler<RouteManager>() {
@Override
public void success(RouteManager result) {
Log.i("PULSE","CONNECTED");
result.subscribe("pulseStream", pulseMsgHandler);
}
@Override
public void failure(Throwable error) {
Log.i("PULSE","FAILED");
Log.i("PULSE",error.toString());
super.failure(error);
}
});
Direct unprocessed routing seems to work fine. Such as the following.
accelerometerCtrllr.routeData().fromAxes()
.stream("accelStream")
.commit().onComplete(new AsyncOperation.CompletionHandler<RouteManager>() {
@Override
public void success(RouteManager result) {
result.subscribe("accelStream", accelerometerMsgHandler);
devicesInitialized += 1;
accelerometerCtrllr.enableAxisSampling();
accelerometerCtrllr.start();
}
@Override
public void failure(Throwable error) {
super.failure(error);
}
});
Any ideas on what might be happening?
This discussion has been closed.
Comments