code: def tagReportCallback(llrpMsg):
      
      global tagReport
      tags = llrpMsg.msgdict['RO_ACCESS_REPORT']['TagReportData']
      if len(tags):
          logger.info('saw tag(s): %s', pprint.pformat(tags))
      else:
          logger.info('no tags seen')
          return
      for tag in tags:
          tagReport += tag['TagSeenCount'][0]
          if "OpSpecResult" in tag:
              # copy the binary data to the standard output stream
              data = tag["OpSpecResult"].get("ReadData")
              if data:
                  if sys.version_info.major < 3:
                      sys.stdout.write(data)
                  else:
                      sys.stdout.buffer.write(data)                     # bytes
                  logger.debug("hex data: %s", binascii.hexlify(data))
docs: Function to run each time the reader reports seeing tags.