我使用CC2541芯片遇到了两个问题。
1.我使用设置characteristic启动notify的方式来获取数据,在40ms发一次的情况下,notify发送的数据包会丢失。
2.在使用上面的方式发送数据时,一个包包含的数据只能支持29字节的,而代码里面的注释上说明的是
typedef struct attAttribute_t
{
gattAttrType_t type;
uint8 permissions;
uint16 handle;
uint8* const pValue;//!< Attribute value - encoding of the octet array is defined in
//!< the Application profile.The maximum length of an attaribute
//!< value shall be 512 octets
} gattAttribute_t;