Other Parts Discussed in Thread: SYSBIOS
Tool/software:
HELLO
The demo code
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.
Tool/software:
HELLO
The demo code
Hello whong,
Stack/Config/f8wcoord.opts defined ZDO_COORDINATOR and RTR_NWK for a Coordinator project, which Stack/Config/f8wenddev.opts does not contain in an End Device project, and thus zglobals.h can set the correct value for ZSTACK_DEVICE_BUILD.
#if !defined ( ZSTACK_DEVICE_BUILD )
#if defined ( ZDO_COORDINATOR )
#define ZSTACK_DEVICE_BUILD (DEVICE_BUILD_COORDINATOR)
#elif defined ( RTR_NWK )
#define ZSTACK_DEVICE_BUILD (DEVICE_BUILD_ROUTER)
#else
#define ZSTACK_DEVICE_BUILD (DEVICE_BUILD_ENDDEVICE)
#endif
#endif
These are compile time settings, as there are pre-build library files differentiating the two nodes, so it is recommended to use the default Node Type which is delivered with the project or use the ZNP example for which any node can be selected through the MT API.
Regards,
Ryan