File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
examples/bluetooth/ble_get_started/nimble
NimBLE_Connection/main/src
NimBLE_GATT_Server/main/src Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ static void start_advertising(void) {
5151 adv_fields .le_role = BLE_GAP_LE_ROLE_PERIPHERAL ;
5252 adv_fields .le_role_is_present = 1 ;
5353
54- /* Set advertiement fields */
54+ /* Set advertisement fields */
5555 rc = ble_gap_adv_set_fields (& adv_fields );
5656 if (rc != 0 ) {
5757 ESP_LOGE (TAG , "failed to set advertising data, error code: %d" , rc );
@@ -74,7 +74,7 @@ static void start_advertising(void) {
7474 return ;
7575 }
7676
77- /* Set non-connetable and general discoverable mode to be a beacon */
77+ /* Set non-connectable and general discoverable mode to be a beacon */
7878 adv_params .conn_mode = BLE_GAP_CONN_MODE_NON ;
7979 adv_params .disc_mode = BLE_GAP_DISC_MODE_GEN ;
8080
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ static void start_advertising(void) {
8080 adv_fields .le_role = BLE_GAP_LE_ROLE_PERIPHERAL ;
8181 adv_fields .le_role_is_present = 1 ;
8282
83- /* Set advertiement fields */
83+ /* Set advertisement fields */
8484 rc = ble_gap_adv_set_fields (& adv_fields );
8585 if (rc != 0 ) {
8686 ESP_LOGE (TAG , "failed to set advertising data, error code: %d" , rc );
@@ -107,7 +107,7 @@ static void start_advertising(void) {
107107 return ;
108108 }
109109
110- /* Set non-connetable and general discoverable mode to be a beacon */
110+ /* Set undirected connectable and general discoverable mode */
111111 adv_params .conn_mode = BLE_GAP_CONN_MODE_UND ;
112112 adv_params .disc_mode = BLE_GAP_DISC_MODE_GEN ;
113113
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ static void start_advertising(void) {
8080 adv_fields .le_role = BLE_GAP_LE_ROLE_PERIPHERAL ;
8181 adv_fields .le_role_is_present = 1 ;
8282
83- /* Set advertiement fields */
83+ /* Set advertisement fields */
8484 rc = ble_gap_adv_set_fields (& adv_fields );
8585 if (rc != 0 ) {
8686 ESP_LOGE (TAG , "failed to set advertising data, error code: %d" , rc );
@@ -107,7 +107,7 @@ static void start_advertising(void) {
107107 return ;
108108 }
109109
110- /* Set non-connetable and general discoverable mode to be a beacon */
110+ /* Set undirected connectable and general discoverable mode */
111111 adv_params .conn_mode = BLE_GAP_CONN_MODE_UND ;
112112 adv_params .disc_mode = BLE_GAP_DISC_MODE_GEN ;
113113
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ static void start_advertising(void) {
9595 adv_fields .le_role = BLE_GAP_LE_ROLE_PERIPHERAL ;
9696 adv_fields .le_role_is_present = 1 ;
9797
98- /* Set advertiement fields */
98+ /* Set advertisement fields */
9999 rc = ble_gap_adv_set_fields (& adv_fields );
100100 if (rc != 0 ) {
101101 ESP_LOGE (TAG , "failed to set advertising data, error code: %d" , rc );
@@ -122,7 +122,7 @@ static void start_advertising(void) {
122122 return ;
123123 }
124124
125- /* Set non-connetable and general discoverable mode to be a beacon */
125+ /* Set undirected connectable and general discoverable mode */
126126 adv_params .conn_mode = BLE_GAP_CONN_MODE_UND ;
127127 adv_params .disc_mode = BLE_GAP_DISC_MODE_GEN ;
128128
You can’t perform that action at this time.
0 commit comments