{"action":"created","issue":{"url":"https://api.github.com/repos/nodesign/weio/issues/266","labels_url":"https://api.github.com/repos/nodesign/weio/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/nodesign/weio/issues/266/comments","events_url":"https://api.github.com/repos/nodesign/weio/issues/266/events","html_url":"https://github.com/nodesign/weio/issues/266","id":115762875,"number":266,"title":"pulseIn timeout","user":{"login":"manuIO","id":9677805,"avatar_url":"https://avatars.githubusercontent.com/u/9677805?v=3","gravatar_id":"","url":"https://api.github.com/users/manuIO","html_url":"https://github.com/manuIO","followers_url":"https://api.github.com/users/manuIO/followers","following_url":"https://api.github.com/users/manuIO/following{/other_user}","gists_url":"https://api.github.com/users/manuIO/gists{/gist_id}","starred_url":"https://api.github.com/users/manuIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuIO/subscriptions","organizations_url":"https://api.github.com/users/manuIO/orgs","repos_url":"https://api.github.com/users/manuIO/repos","events_url":"https://api.github.com/users/manuIO/events{/privacy}","received_events_url":"https://api.github.com/users/manuIO/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-08T21:34:12Z","updated_at":"2015-11-09T08:17:40Z","closed_at":null,"body":"if the value of pulseIn timeout is superior to 1 second the function returns -1.\r\n\r\nConsole message:\r\npulseIn( 23 , 0 , 1100000 )\r\nPulseIn duration = -1 "},"comment":{"url":"https://api.github.com/repos/nodesign/weio/issues/comments/154994013","html_url":"https://github.com/nodesign/weio/issues/266#issuecomment-154994013","issue_url":"https://api.github.com/repos/nodesign/weio/issues/266","id":154994013,"user":{"login":"manuIO","id":9677805,"avatar_url":"https://avatars.githubusercontent.com/u/9677805?v=3","gravatar_id":"","url":"https://api.github.com/users/manuIO","html_url":"https://github.com/manuIO","followers_url":"https://api.github.com/users/manuIO/followers","following_url":"https://api.github.com/users/manuIO/following{/other_user}","gists_url":"https://api.github.com/users/manuIO/gists{/gist_id}","starred_url":"https://api.github.com/users/manuIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuIO/subscriptions","organizations_url":"https://api.github.com/users/manuIO/orgs","repos_url":"https://api.github.com/users/manuIO/repos","events_url":"https://api.github.com/users/manuIO/events{/privacy}","received_events_url":"https://api.github.com/users/manuIO/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T08:17:40Z","updated_at":"2015-11-09T08:17:40Z","body":"> Indeed, timeout parameter is expressed in micro-seconds. Is it a problem ?\r\n\r\ntimeout paramater unit is not a problem, I've done a mistake... I've edited the issue just while your comment.\r\n\r\n> You opened a ticket for that, but I don't understand if something must be changed in the code. For my point of view, this part of code is OK and works as expected, but the 1 sec timeout + param in microseconds must be documented.\r\n\r\nIMHO the 1 sec parameter is very limiting, specially to do understandable examples. For example in Arduino this function works on pulses from 10 microseconds to 3 minutes in length.\r\n Moreover if timeout is superior to 1 sec the board enter in a strange state , the examples can't be stopped and the board needs to be restarted."}}