Responses

This is the core response documentation. This and the Interface (AdafruitFingerprint API) is all the documentation you need look at to implement a use case like the ones in Example Codes.

The Confirmation code (A response object) found as most of the returns of the methods of the AdafruitFingerprint class implemented in the Interface (AdafruitFingerprint API) module are implemeneted here.

Implements fingerprint module confirmation codes as int constants

Defined for the methods of the AdafruitFingerprint class. This module defines the confirmation codes for interfaces of the adafruit fingerprint module. Codes are defined as integer constants.

H here simply means the values are hex values. E.g 0bH means 0x0b, and the integer value is 11.

adafruit_fingerprint.responses.FINGERPRINT_BADLOCATION = 11

(Value is 0bH)

addressing PageID is beyond the finger library (store)

fail to delete template from a location (delete_char)

A store and delete_char response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_ENROLLMISMATCH = 10

Fail to combine the character files. That’s, the character files don’t belong to one finger (Value is 0aH)

A reg_model response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_FEATUREFAIL = 7

Fail to generate character file due to lackness of character point or over-smallness of fingerprint image (Value is 07H)

A img_2Tz response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_FLASHER = 24

(Value is 18H)

error when writing to flash library

A store and delete_char response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_IMAGEFAIL = 3

Fail to collect finger (Value is 03H)

A gen_img response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_IMAGEMESS = 6

Fail to generate character file due to the over-disorderly fingerprint image (Value is 06H)

A img_2Tz response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_INVALIDIMAGE = 21

Fail to generate the image for the lackness of valid primary image (Value is 15H)

A img_2Tz response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_NOFINGER = 2

Can’t detect finger (Value is 02H)

A gen_img response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_NOTFOUND = 9

No matching print in the library (both the PageID and matching score are 0) (Value is 09H)

A search response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_OK = 0

Success for all operations (Value is 00H)

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_PACKETRECEIVER = 1

Error when receiving package (Value is 01H)

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_PASSWORD_OK = 0

Correct password (Value is 00H)

A vry_pwd response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_TEMPLATECLEARALLFAIL = 17

Fail to clear finger library (Value is 11H)

A empty response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_TEMPLATEDELETEFAIL = 16

Fail to delete templates (Value is 10H)

A delete_char response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_TEMPLATEDOWNLOADFAIL = 14

error when downloading template (Value is 0eH)

A down_char response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_TEMPLATEUPLOADFAIL = 13

error when uploading template (Value is 0dH)

A up_char response

Type:

int

adafruit_fingerprint.responses.FINGERPRINT_WRONG_PASSWORD = 19

Wrong Password (Value is 13H)

A vry_pwd response

Type:

int