I'm using esp-idf 3.2 and gatt_server example (https://github.com/espressif/esp-idf/tr ... att_server) and MacOS High Sierra 10.13.6
I'm learning about bluetooth and testing services and characteristics.
I've modified these lines
Code: Select all
#define TEST_DEVICE_NAME "ESP_GATTS_DEMO"
#define TEST_MANUFACTURER_DATA_LEN 17
Code: Select all
#define TEST_DEVICE_NAME "SOFTAGILE"
#define TEST_MANUFACTURER_DATA_LEN 12
Code: Select all
#define TEST_DEVICE_NAME "SOFTAGILE"
#define TEST_MANUFACTURER_DATA_LEN 12
Erased all flash and flash again my modified gatt_server
In both I got wrong advertising name as ESP_GATTS_DEMO even with the lines as
Code: Select all
#define TEST_DEVICE_NAME "SOFTAGILE"
#define TEST_MANUFACTURER_DATA_LEN 12
Code: Select all
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
*ESP_LOGI(GATTS_TAG, "Device Name: %s", TEST_DEVICE_NAME);
ret = esp_bt_controller_init(&bt_cfg);
ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
ret = esp_bluedroid_init();
ret = esp_bluedroid_enable();
*ESP_LOGI(GATTS_TAG, "Device Name: %s", TEST_DEVICE_NAME);
ret = esp_ble_gatts_register_callback(gatts_event_handler);
In nRF Connect app Gatt I didn't find somewhere else I could modify device name.
Why is it still advertising as ESP_GATTS_DEMO?
I don't know if I'm doing something wrong but seems to be an abnormal behaviour.
All others functions working normally
Advertising and connect bluetooth
Receive char "A" and execute a task to lit the led for 5 seconds
execute a random number generation for each 'write' I do in nRF Connect app.
I'm glad if someone could help.