python api for R305 Fingerprint module over UART.
$ pip install R305
$ dnf copr enable girish946/R305
$ dnf install python-R305
To store the fingerprint in to the module
from r305 import R305
import sys
device = sys.argv[1]
baudrate = sys.argv[2] # the default baudrate for this module is 57600
dev = R305(device, baudrate)
def callback(data):
x = raw_input(data)
result = dev.StoreFingerPrint(IgnoreChecksum=True, callback=callback)
print(result)
To search fingerprint in the module
from r305 import R305
import sys
device = sys.argv[1]
baudrate = sys.argv[2] # the default baudrate for this module is 57600
dev = R305(device, baudrate)
result = dev.SearchFingerPrint()
print(result)
the documentation for Python-R305 package can be found at rtfd.org