{"action":"created","issue":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/143","labels_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/143/comments","events_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/143/events","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/143","id":55778224,"number":143,"title":"new sleep set options added (from 0.9.5 sdk)","user":{"login":"alonewolfx2","id":9630594,"avatar_url":"https://avatars.githubusercontent.com/u/9630594?v=3","gravatar_id":"","url":"https://api.github.com/users/alonewolfx2","html_url":"https://github.com/alonewolfx2","followers_url":"https://api.github.com/users/alonewolfx2/followers","following_url":"https://api.github.com/users/alonewolfx2/following{/other_user}","gists_url":"https://api.github.com/users/alonewolfx2/gists{/gist_id}","starred_url":"https://api.github.com/users/alonewolfx2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alonewolfx2/subscriptions","organizations_url":"https://api.github.com/users/alonewolfx2/orgs","repos_url":"https://api.github.com/users/alonewolfx2/repos","events_url":"https://api.github.com/users/alonewolfx2/events{/privacy}","received_events_url":"https://api.github.com/users/alonewolfx2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-28T16:23:30Z","updated_at":"2015-01-29T17:44:38Z","closed_at":"2015-01-29T05:20:51Z","pull_request":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/pulls/143","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/143","diff_url":"https://github.com/nodemcu/nodemcu-firmware/pull/143.diff","patch_url":"https://github.com/nodemcu/nodemcu-firmware/pull/143.patch"},"body":"usage:\r\n-- no wakeup until rst pin to low \r\n```\r\nnode.dsleep(0) \r\n```\r\n-- 4 mean disable RF after deepsleep or restart. (esp8266 consuming ~13mA in this mode.)\r\n-- 1 mean enable RF after deepsleep or restart.\r\n```\r\nnode.dsleepsetoption(4)\r\n```"},"comment":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/comments/72069874","html_url":"https://github.com/nodemcu/nodemcu-firmware/pull/143#issuecomment-72069874","issue_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/143","id":72069874,"user":{"login":"vowstar","id":394260,"avatar_url":"https://avatars.githubusercontent.com/u/394260?v=3","gravatar_id":"","url":"https://api.github.com/users/vowstar","html_url":"https://github.com/vowstar","followers_url":"https://api.github.com/users/vowstar/followers","following_url":"https://api.github.com/users/vowstar/following{/other_user}","gists_url":"https://api.github.com/users/vowstar/gists{/gist_id}","starred_url":"https://api.github.com/users/vowstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vowstar/subscriptions","organizations_url":"https://api.github.com/users/vowstar/orgs","repos_url":"https://api.github.com/users/vowstar/repos","events_url":"https://api.github.com/users/vowstar/events{/privacy}","received_events_url":"https://api.github.com/users/vowstar/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T17:44:38Z","updated_at":"2015-01-29T17:44:38Z","body":"Yes, it also confused me, the SDK is very strange.\r\nI have combine it, and node.dsleep() can have these usage:\r\n```lua\r\n--do nothing\r\nnode.dsleep()\r\n--sleep μs\r\nnode.dsleep(1000000)\r\n--set sleep option, then sleep μs\r\nnode.dsleep(1000000, 4)\r\n--set sleep option only\r\nnode.dsleep(nil,4)\r\n```"}}