{"action":"opened","issue":{"url":"https://api.github.com/repos/vadhack/zfm20/issues/2","repository_url":"https://api.github.com/repos/vadhack/zfm20","labels_url":"https://api.github.com/repos/vadhack/zfm20/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/vadhack/zfm20/issues/2/comments","events_url":"https://api.github.com/repos/vadhack/zfm20/issues/2/events","html_url":"https://github.com/vadhack/zfm20/issues/2","id":293367917,"number":2,"title":"Unknown Fingerprint","user":{"login":"squareTop","id":22423500,"avatar_url":"https://avatars2.githubusercontent.com/u/22423500?v=4","gravatar_id":"","url":"https://api.github.com/users/squareTop","html_url":"https://github.com/squareTop","followers_url":"https://api.github.com/users/squareTop/followers","following_url":"https://api.github.com/users/squareTop/following{/other_user}","gists_url":"https://api.github.com/users/squareTop/gists{/gist_id}","starred_url":"https://api.github.com/users/squareTop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squareTop/subscriptions","organizations_url":"https://api.github.com/users/squareTop/orgs","repos_url":"https://api.github.com/users/squareTop/repos","events_url":"https://api.github.com/users/squareTop/events{/privacy}","received_events_url":"https://api.github.com/users/squareTop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-01T01:01:53Z","updated_at":"2018-02-01T01:01:53Z","closed_at":null,"author_association":"NONE","body":"I have tested the zfm20 using the SFGDemo windows application, and it works fine. However, when i use this package, and run the example code, I always get 'Unknown Fingerprint\".\r\n\r\nExample code (Connected to COM3):\r\nvar FingerPrint = require(\"zfm20\"),\r\n    sensor;\r\n \r\nsensor = new FingerPrint();\r\n \r\nsensor.connect({\r\n    port \t\t: \"COM3\"\r\n    baudrate \t: 57600,\r\n});\r\n \r\nsensor.on(\"ready\", function(){\r\n \r\n    sensor.read()\r\n    .ok(function(id){\r\n        console.log(\"Fingerprint found! ID\",id);\r\n    })\r\n    .fail(function () {\r\n        console.log(\"Unknown fingerprint\");\r\n    })\r\n    .wait(function(){\r\n        console.log(\"Put fingerprint\");\r\n    });\r\n \r\n});\r\n\r\n\r\nThe connection is ok when i run this code: \r\n\r\nvar FingerPrint = require(\"zfm20\"),\r\n    sensor;\r\n  \r\nsensor = new FingerPrint();\r\n \r\nsensor.ports(function(port){\r\n    console.log(port); //check available port \r\n});\r\n\r\nAny advice?"}}
{"actor":{"display_login":"squareTop"}}