I'm developing with an nRF52832, NCS V2.6.0 (happy to update to a newer SDK if it gets me the functionality I need) and Zephyr 3.5
What I'm currently doing is having my peripheral exist System Off via a GPIO trigger (generated by an external RTC at set intervals), briefly advertise with an advertising and scan response packet, then go back into System Off. It advertises long enough for our custom app to detect and grab the scan response packet, but nothing else.
What I want to be able to do is trigger the peripheral to stay "awake" for longer if it detects a scan response request from the central, so that the central can then make a connection and allow a user to download a log file, or do a DFU. And preferably only if it's out custom app that's making the scan response request, and not any other centrals.
Does anyone know:
1. If this is possible?
2. How I'd configure my peripheral to achieve it?
3. How I'd configure my central (custom app) so that the peripheral only extended its advertising time if it's our custom app (or some other "approved" central) that's making the scan response request?
Thanks,
Mike