{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/296","repository_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5","labels_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/296/comments","events_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/296/events","html_url":"https://github.com/sandeepmistry/arduino-nRF5/issues/296","id":346631090,"node_id":"MDU6SXNzdWUzNDY2MzEwOTA=","number":296,"title":"attachInterrupt() not working -> stops BLE Advertise","user":{"login":"ericlangel","id":40859702,"node_id":"MDQ6VXNlcjQwODU5NzAy","avatar_url":"https://avatars1.githubusercontent.com/u/40859702?v=4","gravatar_id":"","url":"https://api.github.com/users/ericlangel","html_url":"https://github.com/ericlangel","followers_url":"https://api.github.com/users/ericlangel/followers","following_url":"https://api.github.com/users/ericlangel/following{/other_user}","gists_url":"https://api.github.com/users/ericlangel/gists{/gist_id}","starred_url":"https://api.github.com/users/ericlangel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericlangel/subscriptions","organizations_url":"https://api.github.com/users/ericlangel/orgs","repos_url":"https://api.github.com/users/ericlangel/repos","events_url":"https://api.github.com/users/ericlangel/events{/privacy}","received_events_url":"https://api.github.com/users/ericlangel/received_events","type":"User","site_admin":false},"labels":[{"id":340593712,"node_id":"MDU6TGFiZWwzNDA1OTM3MTI=","url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-01T14:42:20Z","updated_at":"2018-08-09T19:04:06Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\ni'am trying to imlement an GPIO Interrupt.\r\nSee Arduino Low Power:\r\nhttps://github.com/mristau/Arduino_nRF5x_lowPower/blob/master/examples/power_off/power_off.ino\r\n\r\nBut the attachInterrupt() function didn't work. The Handler never starts.\r\nAnd the NRF52 stops advertising. without attachInterrupt() the Ddevive advertise.\r\n\r\nPin P0.13 -> Arduino Generic nRF52\r\n\r\npinMode(13, INPUT);\r\nattachInterrupt(digitalPinToInterrupt(13), testHandler, RISING);\r\n\r\n\r\nvoid testHandler() {\r\n    Serial.println(\"Interrupt\");    \r\n}\r\n\r\nHope someone can Help me.\r\nI'am trying to move from RFDuino ‎RFD22301 (NRF51822) to an NRF52832.\r\nEverything works, except the sleep Mode.\r\n\r\nGreetings Eric"},"comment":{"url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/comments/411863349","html_url":"https://github.com/sandeepmistry/arduino-nRF5/issues/296#issuecomment-411863349","issue_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/296","id":411863349,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTg2MzM0OQ==","user":{"login":"Priyanshi1106","id":13147468,"node_id":"MDQ6VXNlcjEzMTQ3NDY4","avatar_url":"https://avatars2.githubusercontent.com/u/13147468?v=4","gravatar_id":"","url":"https://api.github.com/users/Priyanshi1106","html_url":"https://github.com/Priyanshi1106","followers_url":"https://api.github.com/users/Priyanshi1106/followers","following_url":"https://api.github.com/users/Priyanshi1106/following{/other_user}","gists_url":"https://api.github.com/users/Priyanshi1106/gists{/gist_id}","starred_url":"https://api.github.com/users/Priyanshi1106/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Priyanshi1106/subscriptions","organizations_url":"https://api.github.com/users/Priyanshi1106/orgs","repos_url":"https://api.github.com/users/Priyanshi1106/repos","events_url":"https://api.github.com/users/Priyanshi1106/events{/privacy}","received_events_url":"https://api.github.com/users/Priyanshi1106/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T19:04:06Z","updated_at":"2018-08-09T19:04:06Z","author_association":"NONE","body":"Hi, \r\n\r\nAny solution to the original problem? Is there any way to use a GPIO interrupt with BLE?\r\nI am using an MPU9250 and am trying to get it to wake on interrupt but the BLE advertising stops when I do attachInterrupt(). I have tried giving the GPIO interrupt a lower priority (higher priority number), but it still doesn't work. \r\n\r\nThanks,\r\nPriyanshi"}}
{"actor":{"display_login":"Priyanshi1106"}}