Changing Advertising Events Interval with NimBLE

alexshield
Posts: 2
Joined: Thu Jul 29, 2021 3:41 am

Changing Advertising Events Interval with NimBLE

Postby alexshield » Thu Jul 29, 2021 4:04 am

Hi, I' dream to set advertise interval (advInterval) to 5000 ms. So, due to Bluetooth SIG 4.4.2.2.1,
T_advEvent = advInterval + advDelay
advInterval = 5000/0.625 = 8000,
I put this into the

Code: Select all

struct ble_hs_adv_fields fields
:

Code: Select all

...
fields.adv_itvl_is_present = 1;
fields.adv_itvl = (uint16_t) 8000;
...
int rc = ble_gap_adv_set_fields(&fields);
printf("ERROR CHECK IS %d", rc)
every thing is compiled and work correctly except interval of advertising. It stable and aprx 2 sec. Also I cann't find the example project with adv interval changings with Nimble stack.
p.s. i'm tried with idf 4.3 and 4.2.2

Who is online

Users browsing this forum: Majestic-12 [Bot] and 119 guests