This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

怎么修改服务和特征值的uuid

Other Parts Discussed in Thread: CC2540, CC2640

大家好:

请问怎么在示例工程 simpleBLEPeripheral 中修改服务和特征值的uuid,原有服务的uuid 是4个16进制位,如“0xFFF0”

可以改成8个16进制位吗--比如“ 0xFFFF 1111”???怎么改?

ps 我在 

simpleGATTprofile.h文件   改了  

// Simple Profile Service UUID
//#define SIMPLEPROFILE_SERV_UUID  0xFFF0
#define SIMPLEPROFILE_SERV_UUID    0x49535343
/////////////////////////////////

att.h文件  改了

// Size of 16-bit Bluetooth UUID
#define ATT_BT_UUID_SIZE     4  //2
///////////////////////////////////

simpleGATTprofile.c文件  改了 

CONST uint8 simpleProfileServUUID [ ATT_BT_UUID_SIZE  ] =
{
////LO_UINT16(SIMPLEPROFILE_SERV_UUID), HI_UINT16(SIMPLEPROFILE_SERV_UUID)
0x49,0x53,0x53,0x43
};

但是,结果还是读到的 uuid 是0x5343,哪位大侠改过?????求指导!!!