mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
docs(ble): Replace advertising interval hex value with BLE_GAP_ADV_ITVL_MS
This commit is contained in:
parent
46e2507c28
commit
c44b5c228f
@ -92,14 +92,14 @@ static void start_advertising(void) {
|
||||
...
|
||||
|
||||
/* Set advertising interval */
|
||||
rsp_fields.adv_itvl = 0x320;
|
||||
rsp_fields.adv_itvl = BLE_GAP_ADV_ITVL_MS(500);
|
||||
rsp_fields.adv_itvl_is_present = 1;
|
||||
|
||||
...
|
||||
|
||||
/* Set advertising interval */
|
||||
adv_params.itvl_min = 0x320;
|
||||
adv_params.itvl_max = 0x321;
|
||||
adv_params.itvl_min = BLE_GAP_ADV_ITVL_MS(500);
|
||||
adv_params.itvl_max = BLE_GAP_ADV_ITVL_MS(510);
|
||||
|
||||
...
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ static void start_advertising(void) {
|
||||
rsp_fields.uri_len = sizeof(esp_uri);
|
||||
|
||||
/* Set advertising interval */
|
||||
rsp_fields.adv_itvl = 0x320;
|
||||
rsp_fields.adv_itvl = BLE_GAP_ADV_ITVL_MS(500);
|
||||
rsp_fields.adv_itvl_is_present = 1;
|
||||
|
||||
/* Set scan response fields */
|
||||
@ -112,8 +112,8 @@ static void start_advertising(void) {
|
||||
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
|
||||
|
||||
/* Set advertising interval */
|
||||
adv_params.itvl_min = 0x320;
|
||||
adv_params.itvl_max = 0x321;
|
||||
adv_params.itvl_min = BLE_GAP_ADV_ITVL_MS(500);
|
||||
adv_params.itvl_max = BLE_GAP_ADV_ITVL_MS(510);
|
||||
|
||||
/* Start advertising */
|
||||
rc = ble_gap_adv_start(own_addr_type, NULL, BLE_HS_FOREVER, &adv_params,
|
||||
|
@ -97,7 +97,7 @@ static void start_advertising(void) {
|
||||
rsp_fields.uri_len = sizeof(esp_uri);
|
||||
|
||||
/* Set advertising interval */
|
||||
rsp_fields.adv_itvl = 0x320;
|
||||
rsp_fields.adv_itvl = BLE_GAP_ADV_ITVL_MS(500);
|
||||
rsp_fields.adv_itvl_is_present = 1;
|
||||
|
||||
/* Set scan response fields */
|
||||
@ -112,8 +112,8 @@ static void start_advertising(void) {
|
||||
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
|
||||
|
||||
/* Set advertising interval */
|
||||
adv_params.itvl_min = 0x320;
|
||||
adv_params.itvl_max = 0x321;
|
||||
adv_params.itvl_min = BLE_GAP_ADV_ITVL_MS(500);
|
||||
adv_params.itvl_max = BLE_GAP_ADV_ITVL_MS(510);
|
||||
|
||||
/* Start advertising */
|
||||
rc = ble_gap_adv_start(own_addr_type, NULL, BLE_HS_FOREVER, &adv_params,
|
||||
|
@ -112,7 +112,7 @@ static void start_advertising(void) {
|
||||
rsp_fields.uri_len = sizeof(esp_uri);
|
||||
|
||||
/* Set advertising interval */
|
||||
rsp_fields.adv_itvl = 0x320;
|
||||
rsp_fields.adv_itvl = BLE_GAP_ADV_ITVL_MS(500);
|
||||
rsp_fields.adv_itvl_is_present = 1;
|
||||
|
||||
/* Set scan response fields */
|
||||
@ -127,8 +127,8 @@ static void start_advertising(void) {
|
||||
adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
|
||||
|
||||
/* Set advertising interval */
|
||||
adv_params.itvl_min = 0x320;
|
||||
adv_params.itvl_max = 0x321;
|
||||
adv_params.itvl_min = BLE_GAP_ADV_ITVL_MS(500);
|
||||
adv_params.itvl_max = BLE_GAP_ADV_ITVL_MS(510);
|
||||
|
||||
/* Start advertising */
|
||||
rc = ble_gap_adv_start(own_addr_type, NULL, BLE_HS_FOREVER, &adv_params,
|
||||
|
Loading…
x
Reference in New Issue
Block a user