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.

调用AF_DataRequest()后程序就崩溃

Other Parts Discussed in Thread: Z-STACK

HalUARTWrite(0, "zigbee\n\r", 8);
if( AF_DataRequest( &SampleApp_Periodic_DstAddr, &SampleApp_epDesc,
SAMPLEAPP_PERIODIC_CLUSTERID,
10,//字节数
data,//指针头
&zclSampleSw_TaskID,
AF_DISCV_ROUTE,
AF_DEFAULT_RADIUS )==afStatus_SUCCESS);
HalUARTWrite(0, "zigbee\n\r", 8);

如程序,当调用该部分后系统就崩溃了,数据成功发送出去了,而且串口接收可以收到两次的zigbee,各位有碰到这种情况吗?是AF_DataRequest()配置的原因吗?