aboutsummaryrefslogtreecommitdiff
path: root/src/net/sourceforge/opentracking/TrackerEventHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2011-03-23 12:33:29 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2011-03-23 12:33:29 +0000
commitdd6db81db43f5c23e5349c0b06d4a0ce6830d127 (patch)
tree2277f94798a6bc5988f518c1472b2777a2e03cc6 /src/net/sourceforge/opentracking/TrackerEventHandler.java
parent52c26cb593201a74443329221722cc33c142b476 (diff)
downloadtrackermap-server-dd6db81db43f5c23e5349c0b06d4a0ce6830d127.tar.gz
trackermap-server-dd6db81db43f5c23e5349c0b06d4a0ce6830d127.tar.bz2
trackermap-server-dd6db81db43f5c23e5349c0b06d4a0ce6830d127.zip
Diffstat (limited to 'src/net/sourceforge/opentracking/TrackerEventHandler.java')
-rw-r--r--src/net/sourceforge/opentracking/TrackerEventHandler.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/net/sourceforge/opentracking/TrackerEventHandler.java b/src/net/sourceforge/opentracking/TrackerEventHandler.java
index d052cb86e..7bd3f5501 100644
--- a/src/net/sourceforge/opentracking/TrackerEventHandler.java
+++ b/src/net/sourceforge/opentracking/TrackerEventHandler.java
@@ -44,7 +44,15 @@ public class TrackerEventHandler extends SimpleChannelHandler {
Position position = (Position) e.getMessage();
- System.out.println("id: " + position.getDeviceId() + ", lat: " + position.getLatitude() + ", lon: " + position.getLongitude() );
+ System.out.println(
+ "id: " + position.getId() +
+ ", deviceId: " + position.getDeviceId() +
+ ", valid: " + position.getValid() +
+ ", time: " + position.getTime() +
+ ", latitude: " + position.getLatitude() +
+ ", longitude: " + position.getLongitude() +
+ ", speed: " + position.getSpeed() +
+ ", course: " + position.getCourse());
// Write position to database
try {