Just wanted to re-open this thread as it appears there’s a few of us having trouble with the linked library. Specifically:
Hoping someone out there may have an idea on how to get this working.
Many thanks.
Just wanted to re-open this thread as it appears there’s a few of us having trouble with the linked library. Specifically:
Hoping someone out there may have an idea on how to get this working.
Many thanks.
I have no hardware to test this either (just as @peekay123), but looking at the issue description there this seems to be the code part that needs altering
https://github.com/pkourany/FPS_GT511C3_Library/blob/master/FPS_GT511C3.cpp#715
while (done == false)
{
firstbyte = (byte)Serial1.read();
if (firstbyte == Response_Packet::COMMAND_START_CODE_1)
{
done = true;
}
}
to something like this
uint32_t msTimeout = millis();
while (!done && (millis() - msTimeout < WAIT4RESPONSE)) // #define WAIT4RESPONSE has to be set to an appropriat value
{
firstbyte = (byte)Serial1.read();
if (firstbyte == Response_Packet::COMMAND_START_CODE_1)
{
done = true;
}
Particle.process(); // keep the device responsive to cloud activities like OTA flash
}
if (!done) return NULL; // the response pointer has to be checked for !NULL on the calling side
Give this a try with your hardware and let us know if this helped
I sent a PR to https://github.com/pkourany/FPS_GT511C3_Library with my fully working classroom fingerprint scanner and a link to find the 3D printed case etc.
For those interested in using this FPS module:
There seems to be a problem to compile a sketch for this FPS with the new library in the web IDE. (even with the ‘old’ library ported by @peekay123)
=> There is another thread where this is discussed. Here is the LINK