{"action":"created","issue":{"url":"https://api.github.com/repos/orbotix/sphero.js/issues/49","repository_url":"https://api.github.com/repos/orbotix/sphero.js","labels_url":"https://api.github.com/repos/orbotix/sphero.js/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/orbotix/sphero.js/issues/49/comments","events_url":"https://api.github.com/repos/orbotix/sphero.js/issues/49/events","html_url":"https://github.com/orbotix/sphero.js/issues/49","id":125730704,"number":49,"title":"ollie doesn't connect with uuid","user":{"login":"codeNgamer","id":8572732,"avatar_url":"https://avatars.githubusercontent.com/u/8572732?v=3","gravatar_id":"","url":"https://api.github.com/users/codeNgamer","html_url":"https://github.com/codeNgamer","followers_url":"https://api.github.com/users/codeNgamer/followers","following_url":"https://api.github.com/users/codeNgamer/following{/other_user}","gists_url":"https://api.github.com/users/codeNgamer/gists{/gist_id}","starred_url":"https://api.github.com/users/codeNgamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeNgamer/subscriptions","organizations_url":"https://api.github.com/users/codeNgamer/orgs","repos_url":"https://api.github.com/users/codeNgamer/repos","events_url":"https://api.github.com/users/codeNgamer/events{/privacy}","received_events_url":"https://api.github.com/users/codeNgamer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2016-01-09T02:10:17Z","updated_at":"2016-02-25T18:56:09Z","closed_at":null,"body":"I've got the following code which works for the most part, except that the callback is never called from\r\nollie.connect()\r\n\r\n```javascript\r\n\r\nconst bleAddress = \"e7:40:98:2a:20:8d\";\r\nnoble = Npm.require('noble');\r\nsphero = Npm.require('sphero');\r\n// Cylon = Npm.require('cylon');\r\n// Npm.require('cylon-ble');\r\n\r\nnoble.on('stateChange', function(state) {\r\n  if (state === 'poweredOn') {\r\n    console.log(\"Scanning for ollie's in the area...\");\r\n    noble.startScanning();\r\n  } else {\r\n    noble.stopScanning();\r\n  }\r\n});\r\n\r\nnoble.on('discover', function(peripheral) {\r\n  if(peripheral.address === bleAddress) {\r\n    console.log('Found your ollie!');\r\n\r\n    if(peripheral.connectable) {\r\n      console.log('I can connect to it');\r\n      console.log('Attempting to connect now');\r\n\r\n      noble.stopScanning();\r\n      console.dir('device uuid is: ' + peripheral.uuid);\r\n\r\n      ollie = sphero(peripheral.uuid);\r\n\r\n      ollie.connect(function() {\r\n        console.log('connected!');\r\n      });\r\n      ollie.on('error', function() {\r\n        console.log('error');\r\n      })\r\n    }else {\r\n      console.log('Womp womp, I cant connect to it right now');\r\n    }\r\n\r\n  }\r\n});\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/orbotix/sphero.js/issues/comments/188929156","html_url":"https://github.com/orbotix/sphero.js/issues/49#issuecomment-188929156","issue_url":"https://api.github.com/repos/orbotix/sphero.js/issues/49","id":188929156,"user":{"login":"deadprogram","id":5520,"avatar_url":"https://avatars.githubusercontent.com/u/5520?v=3","gravatar_id":"","url":"https://api.github.com/users/deadprogram","html_url":"https://github.com/deadprogram","followers_url":"https://api.github.com/users/deadprogram/followers","following_url":"https://api.github.com/users/deadprogram/following{/other_user}","gists_url":"https://api.github.com/users/deadprogram/gists{/gist_id}","starred_url":"https://api.github.com/users/deadprogram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadprogram/subscriptions","organizations_url":"https://api.github.com/users/deadprogram/orgs","repos_url":"https://api.github.com/users/deadprogram/repos","events_url":"https://api.github.com/users/deadprogram/events{/privacy}","received_events_url":"https://api.github.com/users/deadprogram/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T18:56:09Z","updated_at":"2016-02-25T18:56:09Z","body":"Hi, @b44p still researching on this. Another question: what exact Mac do you have? Including the specific Bluetooth adaptor, please."}}