I am trying to change after 10 seconds into non-connectable mode. I am using the below code for initializing:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
static void advertising_init(void)
{
ret_code_t err_code;
ble_advertising_init_t init;
uint8_t flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
ble_advdata_manuf_data_t manu_data;
memset(&init, 0, sizeof(init));
uint8_t data[23];
data[0] = 0x02;
data[1] = 0x15;
// memcpy(&data[2],ib_uuid,16);
// memcpy(&data[18],ib_major,2);
// memcpy(&data[20],ib_minor,2);
// memcpy(&data[2],ib_uuid,16);
// memcpy(&data[18],major_value_global,2);
I want to change mode into non-connectable using this type of advertisement method only atm.