BLE_SPP_SERVER

klteng
Posts: 10
Joined: Sat Feb 25, 2017 4:15 pm

BLE_SPP_SERVER

Postby klteng » Thu May 03, 2018 3:00 am

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?

philar
Posts: 4
Joined: Fri May 25, 2018 11:12 pm

Re: BLE_SPP_SERVER

Postby philar » Mon May 28, 2018 2:58 am

maybe you should make clean first

DanCurram
Posts: 15
Joined: Tue Jun 12, 2018 2:13 pm

Re: BLE_SPP_SERVER

Postby DanCurram » Tue Jun 12, 2018 2:18 pm

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.

Who is online

Users browsing this forum: No registered users and 23 guests