Hi Support, my application was based on the Simple_Peripheral example. I am advertising two sets:
SDK in use: simplelink_cc2640r2_sdk_5_30_00_03
1. One set when a button is pushed, I advertise for 4 seconds, payload of 27bytes in total using legacy mode(GapAdv_params_t advParamLegacy = GAPADV_PARAMS_LEGACY_SCANN_CONN).
2. Second set every 40 seconds, I advertise every for 300ms, payload of 21bytes in total using legacy mode (GapAdv_params_t advParamLegacy = GAPADV_PARAMS_LEGACY_SCANN_CONN).
I want to advertise in longrange mode when the button is pushed and legacy mode every 40seconds.
When I change the GapAdv_params_t advParamLegacy = GAPADV_PARAMS_LEGACY_SCANN_CONN; to GapAdv_params_t advParamLongrange = GAPADV_PARAMS_AE_LONG_RANGE_CONN;
The above happens in the GAP_DEVICE_INIT_DONE_EVENT state.
However when I change the advertise type from legacy to longrange the code gest stuck in simple_peripheral_spin();
When I change back to legacy mode and recompile and run, then everything works fine.
What am I doing wrongly, and how do I get to advertise one set in long range and another set in legacy mode.
Thanks