]> granicus.if.org Git - esp-idf/commitdiff
Minor: Fix some typos in Bluetooth examples
authorHrishikesh Dhayagude <hrishi@espressif.com>
Wed, 31 Jul 2019 07:33:03 +0000 (15:33 +0800)
committerAngus Gratton <angus@espressif.com>
Wed, 31 Jul 2019 07:33:03 +0000 (15:33 +0800)
examples/bluetooth/ble_ancs/main/ble_ancs_demo.c
examples/bluetooth/bluedroid/ble/gatt_security_server/main/example_ble_sec_gatts_demo.c
examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/example_spp_acceptor_demo.c
examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/example_spp_initiator_demo.c
examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/example_spp_vfs_acceptor_demo.c
examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/example_spp_vfs_initiator_demo.c
examples/bluetooth/nimble/blehr/main/main.c
examples/bluetooth/nimble/bleprph/main/main.c

index 28ca4629fcf734a926e093607f5bb6a8cb8776bd..294a8a106149a813aec71b058d72f39d8f9ce3ab 100644 (file)
@@ -24,7 +24,7 @@
 #include "ble_ancs.h"
 
 #define BLE_ANCS_TAG                              "BLE_ANCS"
-#define EXCAMPLE_DEVICE_NAME                      "ESP_BLE_ANCS"
+#define EXAMPLE_DEVICE_NAME                       "ESP_BLE_ANCS"
 #define PROFILE_A_APP_ID                          0
 #define PROFILE_NUM                               1
 #define ADV_CONFIG_FLAG                           (1 << 0)
@@ -331,7 +331,7 @@ static void gattc_profile_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_
     switch (event) {
     case ESP_GATTC_REG_EVT:
         ESP_LOGI(BLE_ANCS_TAG, "REG_EVT");
-        esp_ble_gap_set_device_name(EXCAMPLE_DEVICE_NAME);
+        esp_ble_gap_set_device_name(EXAMPLE_DEVICE_NAME);
         esp_ble_gap_config_local_icon (ESP_BLE_APPEARANCE_GENERIC_WATCH);
         //generate a resolvable random address
         esp_ble_gap_config_local_privacy(true);
index 2c1a8186f74ce8da23446cc5d9359a9eb2c3ef58..a7c80182fd93260d87a9bc7111f0f31c79b4b95c 100644 (file)
@@ -25,7 +25,7 @@
 #define HEART_PROFILE_NUM                         1
 #define HEART_PROFILE_APP_IDX                     0
 #define ESP_HEART_RATE_APP_ID                     0x55
-#define EXCAMPLE_DEVICE_NAME                      "ESP_BLE_SECURITY"
+#define EXAMPLE_DEVICE_NAME                       "ESP_BLE_SECURITY"
 #define HEART_RATE_SVC_INST_ID                    0
 
 #define GATTS_DEMO_CHAR_VAL_LEN_MAX               0x40
@@ -400,7 +400,7 @@ static void gatts_profile_event_handler(esp_gatts_cb_event_t event,
     ESP_LOGV(GATTS_TABLE_TAG, "event = %x\n",event);
     switch (event) {
         case ESP_GATTS_REG_EVT:
-            esp_ble_gap_set_device_name(EXCAMPLE_DEVICE_NAME);
+            esp_ble_gap_set_device_name(EXAMPLE_DEVICE_NAME);
             //generate a resolvable random address
             esp_ble_gap_config_local_privacy(true);
             esp_ble_gatts_create_attr_tab(heart_rate_gatt_db, gatts_if,
index feadac1521d32c3ae73636e11ee24f1841241d17..cf82c2724eaa7520ac685da68b41606f137facc2 100644 (file)
@@ -26,7 +26,7 @@
 
 #define SPP_TAG "SPP_ACCEPTOR_DEMO"
 #define SPP_SERVER_NAME "SPP_SERVER"
-#define EXCAMPLE_DEVICE_NAME "ESP_SPP_ACCEPTOR"
+#define EXAMPLE_DEVICE_NAME "ESP_SPP_ACCEPTOR"
 #define SPP_SHOW_DATA 0
 #define SPP_SHOW_SPEED 1
 #define SPP_SHOW_MODE SPP_SHOW_SPEED    /*Choose show mode: show data or speed*/
@@ -56,7 +56,7 @@ static void esp_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
     switch (event) {
     case ESP_SPP_INIT_EVT:
         ESP_LOGI(SPP_TAG, "ESP_SPP_INIT_EVT");
-        esp_bt_dev_set_device_name(EXCAMPLE_DEVICE_NAME);
+        esp_bt_dev_set_device_name(EXAMPLE_DEVICE_NAME);
         esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);
         esp_spp_start_srv(sec_mask,role_slave, 0, SPP_SERVER_NAME);
         break;
index a805b73e8be02b6a6eb6ff25c7863de5b6d5c7c5..cd4365996c58f8decbf42be396d3dea31c6c87ce 100644 (file)
@@ -25,7 +25,7 @@
 #include "sys/time.h"
 
 #define SPP_TAG "SPP_INITIATOR_DEMO"
-#define EXCAMPLE_DEVICE_NAME "ESP_SPP_INITIATOR"
+#define EXAMPLE_DEVICE_NAME "ESP_SPP_INITIATOR"
 
 #define SPP_SHOW_DATA 0
 #define SPP_SHOW_SPEED 1
@@ -103,7 +103,7 @@ static void esp_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
     switch (event) {
     case ESP_SPP_INIT_EVT:
         ESP_LOGI(SPP_TAG, "ESP_SPP_INIT_EVT");
-        esp_bt_dev_set_device_name(EXCAMPLE_DEVICE_NAME);
+        esp_bt_dev_set_device_name(EXAMPLE_DEVICE_NAME);
         esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);
         esp_bt_gap_start_discovery(inq_mode, inq_len, inq_num_rsps);
 
index a24d691ecf3078a2d1f35eea8a1fff9267b3104c..092756b72488fb545a27a64d7f19314bed78c36b 100644 (file)
@@ -38,7 +38,7 @@
 
 #define SPP_TAG "SPP_ACCEPTOR_DEMO"
 #define SPP_SERVER_NAME "SPP_SERVER"
-#define EXCAMPLE_DEVICE_NAME "ESP_SPP_ACCEPTOR"
+#define EXAMPLE_DEVICE_NAME "ESP_SPP_ACCEPTOR"
 
 static const esp_spp_mode_t esp_spp_mode = ESP_SPP_MODE_VFS;
 
@@ -75,7 +75,7 @@ static void esp_spp_cb(uint16_t e, void *p)
     switch (event) {
     case ESP_SPP_INIT_EVT:
         ESP_LOGI(SPP_TAG, "ESP_SPP_INIT_EVT");
-        esp_bt_dev_set_device_name(EXCAMPLE_DEVICE_NAME);
+        esp_bt_dev_set_device_name(EXAMPLE_DEVICE_NAME);
         esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);
         esp_spp_start_srv(sec_mask,role_slave, 0, SPP_SERVER_NAME);
         break;
index ea8e79987ccd8f64b79e7b09d83c4438401a9378..fc34a8f024387ff6fe50c070416216d1f8885d0a 100644 (file)
@@ -37,7 +37,7 @@
 #include "sys/unistd.h"
 
 #define SPP_TAG "SPP_INITIATOR_DEMO"
-#define EXCAMPLE_DEVICE_NAME "ESP_SPP_INITIATOR"
+#define EXAMPLE_DEVICE_NAME "ESP_SPP_INITIATOR"
 
 static const esp_spp_mode_t esp_spp_mode = ESP_SPP_MODE_VFS;
 
@@ -113,7 +113,7 @@ static void esp_spp_cb(uint16_t e, void *p)
     switch (event) {
     case ESP_SPP_INIT_EVT:
         ESP_LOGI(SPP_TAG, "ESP_SPP_INIT_EVT");
-        esp_bt_dev_set_device_name(EXCAMPLE_DEVICE_NAME);
+        esp_bt_dev_set_device_name(EXAMPLE_DEVICE_NAME);
         esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);
         esp_bt_gap_start_discovery(inq_mode, inq_len, inq_num_rsps);
 
index ca5b8d4df9e08803e28cbe447aa6f0d65bcf92d1..f1b7180af88e6adda929f5b34fe54bf382246247 100644 (file)
@@ -134,7 +134,7 @@ blehr_tx_hrate_stop(void)
     xTimerStop( blehr_tx_timer, 1000 / portTICK_PERIOD_MS );
 }
 
-/* Reset heartrate measurment */
+/* Reset heart rate measurement */
 static void
 blehr_tx_hrate_reset(void)
 {
index 58fc39a347f41d2ca79ef61444e6037762a9db6f..917e2246cadfa4a3b958d242ff0440008c959f6c 100644 (file)
@@ -93,7 +93,7 @@ bleprph_advertise(void)
                    BLE_HS_ADV_F_BREDR_UNSUP;
 
     /* Indicate that the TX power level field should be included; have the
-     * stack fill this value automatically.  This is done by assiging the
+     * stack fill this value automatically.  This is done by assigning the
      * special value BLE_HS_ADV_TX_PWR_LVL_AUTO.
      */
     fields.tx_pwr_lvl_is_present = 1;
@@ -135,7 +135,7 @@ bleprph_advertise(void)
  *
  * @param event                 The type of event being signalled.
  * @param ctxt                  Various information pertaining to the event.
- * @param arg                   Application-specified argument; unuesd by
+ * @param arg                   Application-specified argument; unused by
  *                                  bleprph.
  *
  * @return                      0 if the application successfully handled the