I have 3 questions: 1. How to set device to non-discovery mode? 2. Once the device is in non-discovery mode, How can host connect to it? 3. Can I use Master Control Panel to connect device which is in non-discovery mode?
I have 3 questions: 1. How to set device to non-discovery mode? 2. Once the device is in non-discovery mode, How can host connect to it? 3. Can I use Master Control Panel to connect device which is in non-discovery mode?
What exactly do you mean by "non-discovery mode"?
If you just mean to send advertising packets, but not be neither General Discoverable nor Limited Discoverable, this is done just by not using those flags when setting the advertising data, i.e. using BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED and not BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE or BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE.
However, if you mean to not send advertisement packets at all, you'll have to either explicitly stop advertising using sd_ble_gap_adv_stop() or wait for a timeout, and in this case, no device will be able to connect to you.
A general question? What is the use-case where a BLE device will send an advertisement packet when in non-discoverable mode? I.e what is the point in doing this since technically there is no discovery procedure to look for advertisements in which limited discoverable mode is not set and general discoverable mode is not set.
A general question? What is the use-case where a BLE device will send an advertisement packet when in non-discoverable mode? I.e what is the point in doing this since technically there is no discovery procedure to look for advertisements in which limited discoverable mode is not set and general discoverable mode is not set.