CC2541中SIMPLEPROFILE_SERV_UUID在蓝牙中的作用?
时间:10-02
整理:3721RD
点击:
1.在CC2541的官方历程SimpleBLEPeripheral中,自定义的UUID (#define SIMPLEPROFILE_SERV_UUID 0xFFF0)是不是用来查询服务的?
// Simple Profile Service UUID
#define SIMPLEPROFILE_SERV_UUID 0xFFF0
// Key Pressed UUID
#define SIMPLEPROFILE_CHAR1_UUID 0xFFF1
#define SIMPLEPROFILE_CHAR2_UUID 0xFFF2
#define SIMPLEPROFILE_CHAR3_UUID 0xFFF3
#define SIMPLEPROFILE_CHAR4_UUID 0xFFF4
#define SIMPLEPROFILE_CHAR5_UUID 0xFFF5
// Simple Keys Profile Services bit fields
#define SIMPLEPROFILE_SERVICE 0x00000001
// Length of Characteristic 5 in bytes
#define SIMPLEPROFILE_CHAR5_LEN 5
SIMPLEPROFILE_SERV_UUID 您可以理解为是TI定义的demo用的UUID,和其他UUID用法是一样的