I am using the BLE_SPP_SERVER code in the ESP-IDF example. I am trying to change the BLE device name and seem it still stuck with its old name.
#define SPP_PROFILE_NUM 1
#define SPP_PROFILE_APP_IDX 0
#define ESP_SPP_APP_ID 0x56
#define SAMPLE_DEVICE_NAME "ESP_SPP_SERVER"
#define SPP_SVC_INST_ID 0
Change to......
#define SPP_PROFILE_NUM 1
#define SPP_PROFILE_APP_IDX 0
#define ESP_SPP_APP_ID 0x56
#define SAMPLE_DEVICE_NAME "TEST_SPP"
#define SPP_SVC_INST_ID 0
After we change to "TEST_SPP" and re-compile the code, it still appears as "ESP_SPP_SERVER" when scan for BLE device. Any other place I should modify the code?
BLE_SPP_SERVER
Re: BLE_SPP_SERVER
maybe you should make clean first
Re: BLE_SPP_SERVER
I had a similar issue until I spotted the ascii values in hex in other data used to setup the device.
the name is inn the spp_adv_data[] array. eg look for ascii values in hex to spot it and the size of the string.
the name is inn the spp_adv_data[] array. eg look for ascii values in hex to spot it and the size of the string.
Who is online
Users browsing this forum: No registered users and 6 guests