Permalink
Browse files

implement third-party packet parsing

  • Loading branch information...
1 parent ec9df9c commit f4c004654647062b7da33465e8d2b0381ac1b7a6 @ge0rg committed Mar 21, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/AprsService.scala
View
@@ -200,7 +200,12 @@ class AprsService extends Service {
def parsePacket(ts : Long, message : String) {
try {
- val fap = Parser.parse(message)
+ var fap = Parser.parse(message)
+ if (fap.getType() == APRSTypes.T_THIRDPARTY) {
+ Log.d(TAG, "parsePacket: third-party packet from " + fap.getSourceCall())
+ fap = Parser.parse(fap.getAprsInformation().toString())
+ }
+
if (fap.getAprsInformation() == null) {
Log.d(TAG, "parsePacket() misses payload: " + message)
return

0 comments on commit f4c0046

Please sign in to comment.