Lines Matching full:nfc
3 # Example nfcpy to hostapd wrapper for WPS NFC operations
14 import nfc
15 import nfc.ndef
16 import nfc.llcp
17 import nfc.handover
110 class HandoverServer(nfc.handover.HandoverServer):
120 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12")
121 if not request.type == 'urn:nfc:wkt:Hr':
125 request = nfc.ndef.HandoverRequestMessage(request)
126 except nfc.ndef.DecodeError as e:
141 sel = nfc.ndef.HandoverSelectMessage(version="1.2")
158 message = nfc.ndef.Message(data);
214 print("Touch an NFC tag")
227 print("Touch an NFC tag")
268 clf = nfc.ContactlessFrontend()
270 …parser = argparse.ArgumentParser(description='nfcpy to hostapd integration for WPS NFC operations')
307 print("Could not open connection with an NFC device")