Other Parts Discussed in Thread: Z-STACK
我在GenericAPP例程里面添加了按键触发一个自定义的数据发送函数,在这个发送函数里面的AF_DataRequest的设备描述符我是通过afFindEndPointDesc( GENERICAPP_ENDPOINT )来获得的,请问我这样填写参数对吗?还是要像mesh1.0.0一样定义设备的描述符?为何我按键发送之后,设备的按键功能直接卡死,且接受方ACK了却并没有进入到AF_INCOMING_MSG_CMD里面,求解,万分感谢。抓包文件及代码附上。
void GenericApp_SendTheMessage(void)
{
endPointDesc_t * epDesc;
epDesc = afFindEndPointDesc( GENERICAPP_ENDPOINT );
uint8 SendData[4]={0x11,0x22,0x33,0x99};
afAddrType_t devDstAddr;
devDstAddr.addrMode=(afAddrMode_t)Addr16Bit;
devDstAddr.endPoint=GENERICAPP_ENDPOINT;
devDstAddr.addr.shortAddr=0x0000;
if(SUCCESS==AF_DataRequest(&devDstAddr,
epDesc,
GENERICAPP_CLUSTERID,
4,
SendData,
&zclGenericApp_TaskID,
AF_DISCV_ROUTE,
AF_DEFAULT_RADIUS))
{
osal_start_timerEx( zclGenericApp_TaskID,
JOIN_LED_BLINK_EVT,
50);
}
else
{
}
}