How to defind PDUM_hAPdu

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to defind PDUM_hAPdu

1,265 次查看
836733207
Contributor II

I am new to Zigbee and I've been trying simple data transfer between two JN5168 device , using Zigbee 3.0 and Application Note AN 1229.

 I learn the way mentioned onSimple Data transfer ,but error occurs when I write:

PDUM_thAPduInstance hAPduInst;
hAPduInst = PDUM_hAPduAllocateAPduInstance(apduMyData);

The console show that: apduMyData' undeclared (first use in this function);

And it seems that if  I declare the  apduMyData,I need to initialize it,acording to the warning

warning: 'apduMyData' is used uninitialized in this function

Any one can help ? How to defind  PDUM_hAPdu?It seems associate with the .zspcfg file,but I can not find documents that how to use it.

 
Thanks in advance .

标签 (2)
0 项奖励
回复
2 回复数

1,080 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

Remember, the custom cluster that the JN-AN-1229 has assigned the Receive APDU to the apduMyData.

pastedImage_1.png

Could you please provide your implementation?

Also, please look at the next community post https://community.nxp.com/message/1012968 

Regards,

Mario

0 项奖励
回复

1,080 次查看
836733207
Contributor II

Thanks for your reply.

I add "#include "pdum_gen.h"" in the file where use apduMyData,and it finally work.