{"action":"opened","issue":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/109","labels_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/109/comments","events_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/109/events","html_url":"https://github.com/nodemcu/nodemcu-firmware/issues/109","id":54659101,"number":109,"title":"function in init.lua","user":{"login":"groverz","id":1076150,"avatar_url":"https://avatars.githubusercontent.com/u/1076150?v=3","gravatar_id":"","url":"https://api.github.com/users/groverz","html_url":"https://github.com/groverz","followers_url":"https://api.github.com/users/groverz/followers","following_url":"https://api.github.com/users/groverz/following{/other_user}","gists_url":"https://api.github.com/users/groverz/gists{/gist_id}","starred_url":"https://api.github.com/users/groverz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groverz/subscriptions","organizations_url":"https://api.github.com/users/groverz/orgs","repos_url":"https://api.github.com/users/groverz/repos","events_url":"https://api.github.com/users/groverz/events{/privacy}","received_events_url":"https://api.github.com/users/groverz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-17T11:30:15Z","updated_at":"2015-01-17T11:30:15Z","closed_at":null,"body":"Loop reboot module\r\n\r\n~~~Lua\r\n-- init.lua\r\nfunction get(name)\r\n    file.open(name, \"r\")\r\n    local f=file.readline()\r\n    file.close()\r\n    return f\r\nend\r\n\r\n\r\nfunction set(name, data)\r\n    file.open(name, \"w\")\r\n    file.writeline(data)\r\n    file.close()\r\nend\r\n~~~"}}