Page 1 of 1

BLE_SPP_SERVER

Posted: Thu May 03, 2018 3:00 am
by klteng
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?

Re: BLE_SPP_SERVER

Posted: Mon May 28, 2018 2:58 am
by philar
maybe you should make clean first

Re: BLE_SPP_SERVER

Posted: Tue Jun 12, 2018 2:18 pm
by DanCurram
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.