How to defind PDUM_hAPdu

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to defind PDUM_hAPdu

1,264 Views
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 .

Labels (2)
0 Kudos
Reply
2 Replies

1,079 Views
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 Kudos
Reply

1,079 Views
836733207
Contributor II

Thanks for your reply.

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