{"action":"closed","issue":{"url":"https://api.github.com/repos/labviewhacker/LVH-Leap/issues/1","labels_url":"https://api.github.com/repos/labviewhacker/LVH-Leap/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/labviewhacker/LVH-Leap/issues/1/comments","events_url":"https://api.github.com/repos/labviewhacker/LVH-Leap/issues/1/events","html_url":"https://github.com/labviewhacker/LVH-Leap/issues/1","id":53444236,"number":1,"title":"Behavior of isConnect has changed / been clarified and should be polled","user":{"login":"rajsite","id":1588923,"avatar_url":"https://avatars.githubusercontent.com/u/1588923?v=3","gravatar_id":"","url":"https://api.github.com/users/rajsite","html_url":"https://github.com/rajsite","followers_url":"https://api.github.com/users/rajsite/followers","following_url":"https://api.github.com/users/rajsite/following{/other_user}","gists_url":"https://api.github.com/users/rajsite/gists{/gist_id}","starred_url":"https://api.github.com/users/rajsite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajsite/subscriptions","organizations_url":"https://api.github.com/users/rajsite/orgs","repos_url":"https://api.github.com/users/rajsite/repos","events_url":"https://api.github.com/users/rajsite/events{/privacy}","received_events_url":"https://api.github.com/users/rajsite/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-05T20:34:50Z","updated_at":"2015-03-30T18:14:14Z","closed_at":"2015-03-30T18:14:14Z","body":"In [Open.VI] (https://github.com/labviewhacker/LVH-Leap/blob/ff92fbb278b668884839f10e54f06b6d016e4308/LabVIEW/vi.lib/LabVIEW%20Hacker/Leap/Public/Open.vi) the Controller.IsConnected method will frequently return false (using LEAP software 2.2.1) and the VI gives an error.\r\n\r\n![capture7](https://cloud.githubusercontent.com/assets/1588923/5619453/bbb74238-94e7-11e4-834a-6d0e3df1e072.PNG)\r\n\r\nThe [Leap Motion docs] (https://developer.leapmotion.com/documentation/cpp/api/Leap.Controller.html#cppclass_leap_1_1_controller_1a180fa55a4bf36580963bed9e3e09c227) indicate that isConnected should be polled\r\n\r\n\r\n>When you first create a Controller object, isConnected() returns false. After the controller finishes initializing and connects to the Leap Motion software and if the Leap Motion hardware is plugged in, isConnected() returns true.\r\n>\r\n>You can either handle the onConnect event using a Listener instance or poll the isConnected() function if you need to wait for your application to be connected to the Leap Motion software before performing some other operation.\r\n\r\n\r\n"}}