I’d like to propose an enhancement for the py532lib library, specifically in the i2c.py file. Currently, the read_response function continuously listens for incoming NFC chips without a built-in mechanism to stop this process based on a condition.
I suggest adding a simple flag to the class that can be used to control the execution of the loop.
def __init__(self, address=PN532_I2C_SLAVE_ADDRESS, i2c_channel=RPI_DEFAULT_I2C_NEW):
...
self.condition = True
def read_response(self):
...
while self.condition:
....
This change would provide more control over the NFC reading process, enabling users to stop listening based on specific conditions like listening for incoming chips only on working hours.
I have not found any existing method to stop the read_mifare() function from waiting for incoming chips, so this enhancement would fill a useful gap in the library’s functionality.
Thank you.
I’d like to propose an enhancement for the py532lib library, specifically in the i2c.py file. Currently, the read_response function continuously listens for incoming NFC chips without a built-in mechanism to stop this process based on a condition.
I suggest adding a simple flag to the class that can be used to control the execution of the loop.
This change would provide more control over the NFC reading process, enabling users to stop listening based on specific conditions like listening for incoming chips only on working hours.
I have not found any existing method to stop the read_mifare() function from waiting for incoming chips, so this enhancement would fill a useful gap in the library’s functionality.
Thank you.