I want to sense bluetooth from any distance the radio can detect and without connecting, pairing or bonding. Simply turn led2 on while the nrf51822 senses RF and when it no longer senses RF simply turn led2 off!. No interaction is needed except for the application turning led2 on/off to get scan response or advertising.
Tried to integrate beacon code but i'm using UART for some of my other functions. For some reason they will not compile together if I take out the includes that came with BLE_beacon it compiles fine but without the beacon functionality, as to be expected.
Any recommendations would be helpful. I have used your examples here on the zone from multiple sources. But maybe someone knows a simple answer to this simple question. but almost all are from a perspective of connection then conditional action.
The code I currently have will turn led2 on if connection occurs and turn led2 off when connection terminates. Not a bluetooth sw engineer by any means.
I'm attaching code with multiple examples commented out.
sincerely, your humble struggling servant.code.cpp