Hello, I have a project that's fairly mature and working great but now I want to extend the abilities of the device by using the extended PHYs. I know there are a million threads on this but I can't make any sense out of any of them. I tried looking at the throughput example, and updating my code to match and I still get errors all over the place. I guess I don't even understand how this is supposed to work and what all of it is. I saw a post from years ago that someone was going to create a blog post on what the different advertising types were, etc but I don't think it ever happened.
Here is the relevant code from my project, which I believe I used Blinky as a base example when creating this, along with some questions
What do these do/store? the throughput example has two different sets of these, but it doesn't use the scan_rsp_data anywhere.
This all works great at 1MBPS, but changing the primary and secondary phy to either CODED or 2MBPS, and changing the type to BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED causes me to get an error at one or the other of ble_adv_data no matter how I set up ble_gap_adv_data_t.adv_data or ble_gap_adv_data_t.scan_rsp_data.
I also don't know if this has something to do with MTU? That's my next challenge is extending that, right now I think I'm just using the standard 23 byte MTU for backwards compatibility.
Do I need to do anything with the connection to change speeds? or just the advertising?
Can I get a simple explanation of how to update this (blinky) code to allow 2MPBS and CODED, without just saying "look at the mtu throughput example" like all the other threads? It's not making any sense to me and I can get this to work based on the mtu throughput example.
SDK is 15.2.0 SD is S140 - 6.1.0