UHF-RFID unit not writing or reading data to tags

  • I am using even the example program provided in UIFlow and I am unable to read or write data to tags. Every time I run the program; it gets caught at the function which. Does anyone have a program that works when it comes to writing and reading data to tags? Attached below is the blockly and python for the example program provided.

    The code is not formatted correctly in the example python so perhaps the blockly isn't translating to python correctly?

    Additionally, on the while loops (when I take a single read instead of a multiple polling read) I find that the M5stack gets stuck in a continuous loop and never writes or reads the data.

    How can I format this blockly/python to function on my M5?