Hi so I ran this example:
When I went to ble_advertising.c file and searched for ble_advertising_init
Under the line 502 and made edits to ensure it looks like this. (see below for photo)
p_advertising->adv_params.primary_phy = BLE_GAP_PHY_CODED;
p_advertising->adv_params.secondary_phy = BLE_GAP_PHY_CODED;
p_advertising->adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED; //by right this means the advertising packet is advertising but connection does not occur, however despite changing this to a nonconnectable/scannable state, the central and peripheral still connects
I do not why it still connects even after setting it to p_advertising->adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED;