{"action":"created","issue":{"url":"https://api.github.com/repos/TMRh20/RF24/issues/272","repository_url":"https://api.github.com/repos/TMRh20/RF24","labels_url":"https://api.github.com/repos/TMRh20/RF24/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/TMRh20/RF24/issues/272/comments","events_url":"https://api.github.com/repos/TMRh20/RF24/issues/272/events","html_url":"https://github.com/TMRh20/RF24/issues/272","id":166343381,"number":272,"title":"A public method to check if the chip is connected","user":{"login":"wmarkow","id":14165380,"avatar_url":"https://avatars.githubusercontent.com/u/14165380?v=3","gravatar_id":"","url":"https://api.github.com/users/wmarkow","html_url":"https://github.com/wmarkow","followers_url":"https://api.github.com/users/wmarkow/followers","following_url":"https://api.github.com/users/wmarkow/following{/other_user}","gists_url":"https://api.github.com/users/wmarkow/gists{/gist_id}","starred_url":"https://api.github.com/users/wmarkow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmarkow/subscriptions","organizations_url":"https://api.github.com/users/wmarkow/orgs","repos_url":"https://api.github.com/users/wmarkow/repos","events_url":"https://api.github.com/users/wmarkow/events{/privacy}","received_events_url":"https://api.github.com/users/wmarkow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TMRh20/RF24/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/TMRh20/RF24/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-19T14:20:00Z","updated_at":"2016-07-24T19:40:45Z","closed_at":null,"body":"Would it be a good enhancement to expose a public method that will check if the nRF24 chip is connected to the SPI bus and powered on?\r\nAs discussed in #213, when the chip is not connected (or is damaged or so) then SPI reads mostly 0x00 or 0xFF value from it. To check if the chip is really connected and running we could read the value of some specific register. By some specific register I mean the register that we know for sure that its value MUST be different than 0x00 or 0xFF. We could use a **SETUP_AW** register as according to the specs its value will never be 0x00 nor 0xFF:\r\n```\r\nSETUP_AW = 0b000000xx,\r\nwhere\r\nxx is 01 or 11 or 10 \r\nxx = 00 is illegal\r\n```\r\n\r\nI would appreciate that method (like **bool RF24::isChipConnected()**) as it will make it easier to check if chip is connected without calling the **begin()** again.\r\n"},"comment":{"url":"https://api.github.com/repos/TMRh20/RF24/issues/comments/234797589","html_url":"https://github.com/TMRh20/RF24/issues/272#issuecomment-234797589","issue_url":"https://api.github.com/repos/TMRh20/RF24/issues/272","id":234797589,"user":{"login":"TMRh20","id":2610460,"avatar_url":"https://avatars.githubusercontent.com/u/2610460?v=3","gravatar_id":"","url":"https://api.github.com/users/TMRh20","html_url":"https://github.com/TMRh20","followers_url":"https://api.github.com/users/TMRh20/followers","following_url":"https://api.github.com/users/TMRh20/following{/other_user}","gists_url":"https://api.github.com/users/TMRh20/gists{/gist_id}","starred_url":"https://api.github.com/users/TMRh20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TMRh20/subscriptions","organizations_url":"https://api.github.com/users/TMRh20/orgs","repos_url":"https://api.github.com/users/TMRh20/repos","events_url":"https://api.github.com/users/TMRh20/events{/privacy}","received_events_url":"https://api.github.com/users/TMRh20/received_events","type":"User","site_admin":false},"created_at":"2016-07-24T19:40:45Z","updated_at":"2016-07-24T19:40:45Z","body":"I don't see much harm in something like this, except would it be useful to include it in the [isValid()](http://tmrh20.github.io/RF24/classRF24.html#a35e5f1533b7753806c42b76e782d917e)  function?"}}
{"actor":{"display_login":"TMRh20"}}