Exemple #1
0
 def _tag_read_cb(self, device, tagid):
     """
     Callback for "tag-read" signal. Receives the read tag id.
     """
     idbin = strhex2bin(tagid)
     self.rfid_idn = strbin2dec(idbin[26:64])
     while self.rfid_idn.__len__() < 9:
         self.rfid_idn = '0' + self.rfid_idn
     print tagid, idbin, self.rfid_idn
     self.tw.lc.update_label_value('rfid', self.rfid_idn)
 def _tag_read_cb(self, device, tagid):
     """
     Callback for "tag-read" signal. Receives the read tag id.
     """
     idbin = strhex2bin(tagid)
     self.rfid_idn = strbin2dec(idbin[26:64])
     while self.rfid_idn.__len__() < 9:
         self.rfid_idn = '0' + self.rfid_idn
     print tagid, idbin, self.rfid_idn
     self.tw.lc.update_label_value('rfid', self.rfid_idn)