I am a fresh man, and I have no partners around me. I have some simple questions in the process of learning, please give me some help, thank you.
Application Notes:JN-AN-1217-Zigbee-3-0-Base-Device
I added a function, but there are some trobles in compile.
Please give me some help.
Thanks very much.
Hi Zhang,
Did you define the prototype function? as you can see, both c files should have a .h file with the prototype function.
Regards,
Mario
Hi Mario,
I had defined the prototype function. And the c file has a .h file with the prototype function.
Below is my screenshot. Can you help me check it?
thank you very much. I have spent a lot of time.
Regards,
Zhang
Hi Zhang,
Be sure that the prototype function that you are using is defined as extern.
Regards,
Mario
Hi Mario,
I just created the app_led.c and app_led.h files and define a function under the new folder, then called the function in app_main.c. This will cause a compilation error.
BUT, if I define the same function under the existing folder (app_end_device_node.c), then called the function in app_main.c. This will be no error.
Is this because the .c.h file I created requires additional system configuration?
Please give me some accurate advice, I have spent too much time to solve this problem, thank you very much.
Regards,
Zhang
Hi Mario,
I have tried all of them, but the error is still there.
Can you accurately mark it on the screenshot I sent?
I know this is a very simple question, but it has been bothering me for too long.
Or I exported the project, can you help me check it out?
Regards,
Zhang
Hi Zhang,
Did you create an event for the button 3?
Did you set up the DIO as an input?
Mario
It is OK now.
The application notes has set the DIO as an input and created an event for the button 3.
Thanks for your help!