Something like this should do the trick.
let GT511CXX = require('./gt511cxx.js'), fps = new GT511CXX(GT511CXX.Devices.GT511C3, Serial1); fps.open().then(() => { fps.getTemplate(0).then(template => { console.log('template', template); }).catch(err => console.log(err)); }).catch(err => console.log(err));
This example should return you the template in the first slot (slot: 0). It should return an error if there is no template in the given slot.
thats all I get:
=undefined timeout exceeded >
I even increased the C.TIMEOUT.RECIEVE_DATA to 7s, yet it still times out
@user81574 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Something like this should do the trick.
This example should return you the template in the first slot (slot: 0).
It should return an error if there is no template in the given slot.