Lines Matching +full:encode +full:- +full:only
4 # Copyright (c) 2012-2013, Jouni Malinen <j@w1.fi>
66 if "FAIL" in wpas.request("WPS_NFC_TAG_READ " + str(message).encode("hex")):
95 ret = wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR")
106 str(req).encode("hex") + " " +
107 str(sel).encode("hex"))
134 summary("HandoverServer - request received")
139 print(str(request).encode("hex"))
146 summary("WPS carrier type match - add WPS carrier record")
152 print(data.encode("hex"))
166 print(str(sel).encode("hex"))
179 summary("WPS tag - send to hostapd")
192 summary("Tag found - writing - " + str(tag))
196 print("Done - remove tag")
215 clf.connect(rdwr={'on-connect': rdwr_connected_write})
228 clf.connect(rdwr={'on-connect': rdwr_connected_write})
246 summary("Not an NDEF tag - remove tag")
271 parser.add_argument('-d', const=logging.DEBUG, default=logging.INFO,
274 parser.add_argument('-q', const=logging.WARNING, action='store_const',
276 parser.add_argument('--only-one', '-1', action='store_true',
277 help='run only one operation and exit')
278 parser.add_argument('--no-wait', action='store_true',
280 parser.add_argument('--summary',
282 parser.add_argument('--success',
284 parser.add_argument('command', choices=['write-config',
285 'write-password'],
310 if args.command == "write-config":
314 if args.command == "write-password":
323 if not clf.connect(rdwr={'on-connect': rdwr_connected},
324 llcp={'on-startup': llcp_startup,
325 'on-connect': llcp_connected}):