{"action":"closed","issue":{"url":"https://api.github.com/repos/mysensors/NodeManager/issues/316","repository_url":"https://api.github.com/repos/mysensors/NodeManager","labels_url":"https://api.github.com/repos/mysensors/NodeManager/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/mysensors/NodeManager/issues/316/comments","events_url":"https://api.github.com/repos/mysensors/NodeManager/issues/316/events","html_url":"https://github.com/mysensors/NodeManager/issues/316","id":304065993,"number":316,"title":"Add support for push button","user":{"login":"user2684","id":8075171,"avatar_url":"https://avatars3.githubusercontent.com/u/8075171?v=4","gravatar_id":"","url":"https://api.github.com/users/user2684","html_url":"https://github.com/user2684","followers_url":"https://api.github.com/users/user2684/followers","following_url":"https://api.github.com/users/user2684/following{/other_user}","gists_url":"https://api.github.com/users/user2684/gists{/gist_id}","starred_url":"https://api.github.com/users/user2684/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user2684/subscriptions","organizations_url":"https://api.github.com/users/user2684/orgs","repos_url":"https://api.github.com/users/user2684/repos","events_url":"https://api.github.com/users/user2684/events{/privacy}","received_events_url":"https://api.github.com/users/user2684/received_events","type":"User","site_admin":false},"labels":[{"id":567787475,"url":"https://api.github.com/repos/mysensors/NodeManager/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":567787479,"url":"https://api.github.com/repos/mysensors/NodeManager/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mysensors/NodeManager/milestones/9","html_url":"https://github.com/mysensors/NodeManager/milestone/9","labels_url":"https://api.github.com/repos/mysensors/NodeManager/milestones/9/labels","id":2655804,"number":9,"title":"v1.7","description":"","creator":{"login":"user2684","id":8075171,"avatar_url":"https://avatars3.githubusercontent.com/u/8075171?v=4","gravatar_id":"","url":"https://api.github.com/users/user2684","html_url":"https://github.com/user2684","followers_url":"https://api.github.com/users/user2684/followers","following_url":"https://api.github.com/users/user2684/following{/other_user}","gists_url":"https://api.github.com/users/user2684/gists{/gist_id}","starred_url":"https://api.github.com/users/user2684/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user2684/subscriptions","organizations_url":"https://api.github.com/users/user2684/orgs","repos_url":"https://api.github.com/users/user2684/repos","events_url":"https://api.github.com/users/user2684/events{/privacy}","received_events_url":"https://api.github.com/users/user2684/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":67,"state":"open","created_at":"2017-07-22T13:49:49Z","updated_at":"2018-03-10T18:19:49Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-03-10T12:11:19Z","updated_at":"2018-03-10T18:19:49Z","closed_at":"2018-03-10T18:19:49Z","author_association":"CONTRIBUTOR","body":"This be already implemented by using SensorInterrupt and can be linked to a relay by hooking into it. E.g.\r\n\r\n```c\r\nSensorInterrupt button(node,3);\r\nSensorRelay relay(node,6);\r\n\r\nvoid toggleRelay(Sensor* sensor) {\r\n  relay.toggleStatus();\r\n}\r\n\r\n// before\r\nvoid before() {\r\n  // setup the serial port baud rate\r\n  Serial.begin(MY_BAUD_RATE);\r\n  \r\n  button.setInterruptHook(&triggerRealy);\r\n  button.setInitial(HIGH);\r\n  button.setMode(FALLING);\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"user2684"}}