Lines Matching refs:tag
173 def wps_tag_read(tag):
175 if len(tag.ndef.message):
176 for record in tag.ndef.message:
179 summary("WPS tag - send to hostapd")
180 success = wpas_tag_read(tag.ndef.message)
183 summary("Empty tag")
191 def rdwr_connected_write(tag):
192 summary("Tag found - writing - " + str(tag))
194 tag.ndef.message = str(write_data)
196 print("Done - remove tag")
202 while write_wait_remove and tag.is_present:
214 print("Touch an NFC tag")
227 print("Touch an NFC tag")
231 def rdwr_connected(tag):
233 summary("Tag connected: " + str(tag))
235 if tag.ndef:
236 print("NDEF tag: " + tag.type)
238 print(tag.ndef.message.pretty())
241 success = wps_tag_read(tag)
246 summary("Not an NDEF tag - remove tag")
279 help='do not wait for tag to be removed before exiting')
320 print("Waiting for a tag or peer to be touched")