Greetings,
I've seen multiple references on how to change to the 2Mbps PHY after a connection is made, and I have that working.
Now, I'm trying to advertise at 2Mbps and am seeing the invalid parameter error when trying to start advertising. I've seen several references that the code below is what I should add, but something is missing.
Hardware = u-blox BMD-340-EVAL (equivalent to PCA10056)
SDK = nRF5 SDK, v17.0.2
Example = ble_app_uart
No changes except:
main.c, in advertising_init():
// +++ added code init.config.ble_adv_primary_phy = BLE_GAP_PHY_2MBPS; init.config.ble_adv_secondary_phy = BLE_GAP_PHY_2MBPS; init.config.ble_adv_extended_enabled = true; init.config.ble_adv_on_disconnect_disabled = true; // --- end added code
sdk_config.h, change debug level to 4:
#define NRF_LOG_DEFAULT_LEVEL 4
Calling advertising_start() gives me:
<debug> app: sd_ble_gap_adv_set_configure = 0x7
What other settings am I missing?
For the central side, I'm planning on making the complementary changes to ble_app_uart_c, but have not gotten there yet. Any suggestions are welcome.
Thanks,
Bob