You are reading a single comment by @PaddeK and its replies.
Click here to read the full conversation.
-
Hello @PaddeK, thanks for taking your time to try and sort somethings out.
I'm still getting a timeout error:timeout exceeded
I have tried several alternatives in calling the getTemplate function, yet it still times out.
Also calling the enroll(t) function results in this error:
Error { "msg": "Expecting a function to call, got Object", "type": "Error", "stack": " at line 1 col 1\nfn().then(res.concat.bind(res))\n^\nin function called from system\n" }
after setting enroll with enroll = (t) => () => g.enroll(t); and passed it into the GT511.sequence array I got this error
enroll error: Error { "msg": "Function \"switchLED\" not found!", "type": "Error", "stack": " at line 1 col 6\nthis.switchLED(!!b)\n ^\nin function \"fn\" called from line 1 col 4\nfn().then(res.concat.bind(res))\n ^\nin function called from system\n" }
Okay.. i think it works now. I uploaded the module on my github so its easy to share.
Try this example to get you started:
And i guess i found a bug in espruino somewhere.. while converting the template back to a Uint8Array i have to remove a trailing zero.. which i have no clue why it is there in the first place.