完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我开始发现我的特点与cyble_gattcdiscoverallcharacteristics()去cyble_evt_gattc_read_by_type_rsp事件。
charreport =(cyble_gattc_read_by_type_rsp_param_t *)eventparam; charhandle = charreport - >;attrdata。attrvalue [ 3 ] |(charreport - >;attrdata。attrvalue [ 4 ] <;<;8); 从代码示例中,我可以推断出句柄是: charreport - >;attrdata。attrvalue [3 ] |(charreport - >;attrdata attrvalue [4 ]。 和UUID是charreport - >;attrdata。attrvalue [5 ]起,但没有任何文件数据如何包装? 以上来自于百度翻译 以下为原文 I start discovering my characteristics with CyBle_GattcDiscoverAllCharacteristics() and get to the CYBLE_EVT_GATTC_READ_BY_TYPE_RSP event. charReport = (CYBLE_GATTC_READ_BY_TYPE_RSP_PARAM_T *) EventParam; charHandle = charReport->attrData.attrValue[3] | (charReport->attrData.attrValue[4] << 8); from code examples I can deduce the handle is in: charReport->attrData.attrValue[3] | (charReport->attrData.attrValue[4] and the UUID follows in charReport->attrData.attrValue[5] onwards, but is there any documentation on how the data is packed? |
|
相关推荐
1个回答
|
|
嗨,尚恩·斯蒂芬·菲南,
在BulyEvEnthDANDL.C生成的pSOC4BLE文件中,您可以看到有一个函数(CyByRead Read Bype EvEdEnter)来解码CyByLyEvtgGATCKRead ByType Type RSP事件。 您可以参考此函数实现来获取关于分组解码的细节。 接收的包包括CharHandle(2字节)、属性(1字节)、ValueHAtter(2字节)和UUID(128位或16位)。 谢谢, 兰吉特 以上来自于百度翻译 以下为原文 Hi Shane, In the BLE_eventHandler.c generated file for PSoC4 BLE, you can see there is a function(CyBle_ReadByTypeEventHandler) to decode the CYBLE_EVT_GATTC_READ_BY_TYPE_RSP event. You can refer to this function implementation to get details on decoding the packet. The packet received includes the CharHandle(2 bytes), properties(1 byte), Valuehandle(2bytes) and UUID(128 bit or 16 bit). Thanks, Ranjith |
|
|
|
只有小组成员才能发言,加入小组>>
713个成员聚集在这个小组
加入小组1888 浏览 1 评论
1639 浏览 1 评论
3393 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1556 浏览 6 评论
1371 浏览 1 评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
170浏览 2评论
170浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
304浏览 2评论
325浏览 1评论
45浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-3-29 22:59 , Processed in 0.527723 second(s), Total 43, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 深圳华秋电子有限公司
电子发烧友 (电路图) 粤公网安备 44030402000349 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号