Skip to content
Snippets Groups Projects
Commit 26893f0c authored by Ernesto Corbellini's avatar Ernesto Corbellini
Browse files

Attached listener to the test server.

parent 0831e8af
No related branches found
No related tags found
No related merge requests found
......@@ -28,11 +28,14 @@ public class TestServer extends AbstractNodeMain implements ActionServerListener
as = new ActionServer<FibonacciActionGoal, FibonacciActionFeedback,
FibonacciActionResult>(node, "/fibonacci", FibonacciActionGoal._TYPE,
FibonacciActionFeedback._TYPE, FibonacciActionResult._TYPE);
as.attachListener(this);
}
@Override
public void goalReceived(FibonacciActionGoal goal) {
System.out.println("Goal received.");
as.sendResult(as.newResultMessage());
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment