diff options
Diffstat (limited to 'test/test-device')
-rwxr-xr-x | test/test-device | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test-device b/test/test-device index a4923fb..226408f 100755 --- a/test/test-device +++ b/test/test-device @@ -6,10 +6,10 @@ import neardutils bus = dbus.SystemBus() -def extract_list(list): +def extract_ndef(list): val = "[" for i in list: - val += " " + str(i) + val += " 0x%x" % i val += " ]" return val @@ -73,6 +73,10 @@ if (sys.argv[1] == "dump"): else: neardutils.dump_all_records(sys.argv[2]) + device = neardutils.find_device(sys.argv[2]) + raw_ndef = device.DumpRawNDEF() + print " Raw NDEF = %s" % (extract_ndef(raw_ndef)) + sys.exit(0) if (sys.argv[1] == "push"): |