#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)
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);
#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
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,
#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*/
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;
#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
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);
#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;
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;
#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;
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);
xTimerStop( blehr_tx_timer, 1000 / portTICK_PERIOD_MS );
}
-/* Reset heartrate measurment */
+/* Reset heart rate measurement */
static void
blehr_tx_hrate_reset(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;
*
* @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