I need to allow BLE connections for a period of time after restart, then prevent connections (unless a button is pressed). Is this functionality as simple as re-configuring the advertising parameters to use ( BLE_GAP_ADV_TYPE_ADV_NONCONN_IND ).
Also, I am using scan responses. Do I need to use BLE_GAP_ADV_TYPE_ADV_NONCONN_IND instead, and will this prevent connections. I've seen it mentioned in other forum threads but the documentation is not clear whether this allows connections or not.
Is there anything else I need to do to start preventing connections in the code.