diff options
Diffstat (limited to 'test/push-device')
-rwxr-xr-x | test/push-device | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/push-device b/test/push-device index b0b0c55..d1a142d 100755 --- a/test/push-device +++ b/test/push-device @@ -17,6 +17,8 @@ def help_text(): print "e.g. < %s /org/neard/nfc0/device0 Handover bluetooth,wifi >" % (sys.argv[0]) print "e.g. < %s /org/neard/nfc0/device0 StaticHandover bluetooth,wifi >" % (sys.argv[0]) print "e.g. < %s /org/neard/nfc0/device0 MIME wifi_wsc>" % (sys.argv[0]) + print "e.g. < %s /org/neard/nfc0/device0 MIME raw application/xml '<your><xml tags></your>' >" % (sys.argv[0]) + print "e.g. < %s /org/neard/nfc0/device0 WiFiAssociation >" % (sys.argv[0]) sys.exit(1) if len(sys.argv) < 2: @@ -57,5 +59,12 @@ elif len(sys.argv) == 4: help_text() else: help_text() + +elif len(sys.argv) == 3: + if sys.argv[2] in ["WiFiAssociation"]: + device.Push(({ "Type" : "MIME", + "MIME" : "x/nfctl" })) + else: + help_text() else: help_text() |