Permalink
Browse files

Allow access to the tagdata in a poll request as sting (for prototyping)

  • Loading branch information...
1 parent 8eae98b commit 1436ddb20bbc4029ac54f22c45edc2127fc64819 @alexvanboxel committed Feb 24, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/main/java/org/iotope/nfc/reader/pn532/PN532InAutoPollResponse.java
@@ -24,8 +24,8 @@
import static org.iotope.util.IOUtil.hex;
import java.nio.ByteBuffer;
-
-import org.iotope.util.IOUtil;
+import java.util.ArrayList;
+import java.util.List;
/**
* <p>
@@ -59,6 +59,13 @@ public String toString() {
return buffer.toString();
}
+ public List<String> getRawTagdata() {
+ ArrayList<String> list = new ArrayList<String>();
+ for (TargetData td : tags) {
+ list.add(td.toString());
+ }
+ return list;
+ }
/*
ttag
<- InAutoPoll {TargetData type: 10 len:0c [01 00 44 00 lenid:07 04 47 b9 9a 34 23 80]}

0 comments on commit 1436ddb

Please sign in to comment.