I have a project set up, based around project zero and the CC2650 launchpad. At the moment I press a button to start the device advertising, and it adverstises for 30 seconds before stopping, as I would expect since it is set in limited discoverable mode. On disconnecting (accidental or otherwise) the device then re-enters advertising mode for 30 seconds and then stops.
I would like the device to advertise indefinitely after a disconnection occurs. I believe the best way to do this would be to change the advertising mode to 'general discoverable mode' when a device first connects, however I'm not sure what command or function I would use to change the advertising mode..
Also, if there was a way to also check if the disconnection was deliberate or if it was just due to being out of range that would also be very handy.
Can anyone help me out here?
Thanks,
Craig