Page 1 of 1

Bluetooth beacon to send advertising data only once

Posted: Fri Mar 15, 2019 12:04 pm
by Pranav2410
Hey,
I am currently working on the project which has BLE advertisement beacon and my aims to reduce the power consumption.
I have implemented the BLE advertisement which has this parameters.

Code: Untitled.c Select all

static esp_ble_adv_params_t ble_adv_params = {
.adv_int_min = 0x0020,
.adv_int_max = 0x0020,
.adv_type = ADV_TYPE_NONCONN_IND,
.own_addr_type = BLE_ADDR_TYPE_PUBLIC,
.channel_map = ADV_CHNL_ALL,
.adv_filter_policy = ADV_FILTER_ALLOW_SCAN_ANY_CON_ANY,
};
So our beacon will send the data every 20ms.
Now I want to know if I can advertise only once rather than every 20ms, so will meet the aim of my project to reduce the power consumption and increase the battery life.

Thank you,