{"action":"created","issue":{"url":"https://api.github.com/repos/espruino/Espruino/issues/825","repository_url":"https://api.github.com/repos/espruino/Espruino","labels_url":"https://api.github.com/repos/espruino/Espruino/issues/825/labels{/name}","comments_url":"https://api.github.com/repos/espruino/Espruino/issues/825/comments","events_url":"https://api.github.com/repos/espruino/Espruino/issues/825/events","html_url":"https://github.com/espruino/Espruino/pull/825","id":144346011,"number":825,"title":"Added deepSleep and modemSleep","user":{"login":"urbiworx","id":8903981,"avatar_url":"https://avatars.githubusercontent.com/u/8903981?v=3","gravatar_id":"","url":"https://api.github.com/users/urbiworx","html_url":"https://github.com/urbiworx","followers_url":"https://api.github.com/users/urbiworx/followers","following_url":"https://api.github.com/users/urbiworx/following{/other_user}","gists_url":"https://api.github.com/users/urbiworx/gists{/gist_id}","starred_url":"https://api.github.com/users/urbiworx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbiworx/subscriptions","organizations_url":"https://api.github.com/users/urbiworx/orgs","repos_url":"https://api.github.com/users/urbiworx/repos","events_url":"https://api.github.com/users/urbiworx/events{/privacy}","received_events_url":"https://api.github.com/users/urbiworx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-29T18:18:57Z","updated_at":"2016-04-02T20:43:38Z","closed_at":"2016-03-30T09:12:00Z","pull_request":{"url":"https://api.github.com/repos/espruino/Espruino/pulls/825","html_url":"https://github.com/espruino/Espruino/pull/825","diff_url":"https://github.com/espruino/Espruino/pull/825.diff","patch_url":"https://github.com/espruino/Espruino/pull/825.patch"},"body":"As discussed here: http://forum.espruino.com/conversations/281163/"},"comment":{"url":"https://api.github.com/repos/espruino/Espruino/issues/comments/204802590","html_url":"https://github.com/espruino/Espruino/pull/825#issuecomment-204802590","issue_url":"https://api.github.com/repos/espruino/Espruino/issues/825","id":204802590,"user":{"login":"urbiworx","id":8903981,"avatar_url":"https://avatars.githubusercontent.com/u/8903981?v=3","gravatar_id":"","url":"https://api.github.com/users/urbiworx","html_url":"https://github.com/urbiworx","followers_url":"https://api.github.com/users/urbiworx/followers","following_url":"https://api.github.com/users/urbiworx/following{/other_user}","gists_url":"https://api.github.com/users/urbiworx/gists{/gist_id}","starred_url":"https://api.github.com/users/urbiworx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbiworx/subscriptions","organizations_url":"https://api.github.com/users/urbiworx/orgs","repos_url":"https://api.github.com/users/urbiworx/repos","events_url":"https://api.github.com/users/urbiworx/events{/privacy}","received_events_url":"https://api.github.com/users/urbiworx/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T20:43:38Z","updated_at":"2016-04-02T20:43:38Z","body":"My idea would be to use wifi_fpm_open(); to force immediate modem sleep (after set modem sleep). So calling ESP8266.modemSleep() would then immediately start the modem sleep instead of occasionally starting it."}}