{"action":"created","issue":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/615","labels_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/615/comments","events_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/615/events","html_url":"https://github.com/rwaldron/johnny-five/issues/615","id":56967921,"number":615,"title":"Intel Edison: Sensor, using on() crashes.","user":{"login":"mpbod","id":56545,"avatar_url":"https://avatars.githubusercontent.com/u/56545?v=3","gravatar_id":"","url":"https://api.github.com/users/mpbod","html_url":"https://github.com/mpbod","followers_url":"https://api.github.com/users/mpbod/followers","following_url":"https://api.github.com/users/mpbod/following{/other_user}","gists_url":"https://api.github.com/users/mpbod/gists{/gist_id}","starred_url":"https://api.github.com/users/mpbod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpbod/subscriptions","organizations_url":"https://api.github.com/users/mpbod/orgs","repos_url":"https://api.github.com/users/mpbod/repos","events_url":"https://api.github.com/users/mpbod/events{/privacy}","received_events_url":"https://api.github.com/users/mpbod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-08T21:14:13Z","updated_at":"2015-02-09T01:28:04Z","closed_at":null,"body":" on the Edison, trying to get Sensor working.\r\n```js\r\nvar tilt_sensor = new five.Sensor(\"A1\");\r\ntilt_sensor.on(\"data\", function() {\r\n    console.log(this.value);\r\n});\r\n```\r\nResult:\r\n```\r\nERROR: undefined:0                                                                                                                                                                \r\n\r\n\r\nERROR: TypeError: undefined is not a function\r\n```\r\nthis = board – inside the board's on ready function call\r\n\r\nI can read the value directly, but crashes when using `on()` it crashes like the above..."},"comment":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/comments/73445554","html_url":"https://github.com/rwaldron/johnny-five/issues/615#issuecomment-73445554","issue_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/615","id":73445554,"user":{"login":"rwaldron","id":27985,"avatar_url":"https://avatars.githubusercontent.com/u/27985?v=3","gravatar_id":"","url":"https://api.github.com/users/rwaldron","html_url":"https://github.com/rwaldron","followers_url":"https://api.github.com/users/rwaldron/followers","following_url":"https://api.github.com/users/rwaldron/following{/other_user}","gists_url":"https://api.github.com/users/rwaldron/gists{/gist_id}","starred_url":"https://api.github.com/users/rwaldron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwaldron/subscriptions","organizations_url":"https://api.github.com/users/rwaldron/orgs","repos_url":"https://api.github.com/users/rwaldron/repos","events_url":"https://api.github.com/users/rwaldron/events{/privacy}","received_events_url":"https://api.github.com/users/rwaldron/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T01:28:04Z","updated_at":"2015-02-09T01:28:04Z","body":"Arduino Board or Mini Board?"}}