I've been using MT commands to control a Zigbee network. I use MT_ZDO commands to perform device/endpoint/cluster discovery. Now my customer wants to do additional functions that need MAC commands... but when I turned on the MT_MAC_FUNC compile switch, I got a #error: "MT_MAC functionality should be disabled on ZDO devices".
Why is this? This is a serious impediment, and I can't see any fundamental reason why it should be so.
I commented out the #error and added MT_MAC.c and MT_MAC.h to the build. The build completed successfully, and some of the things I've tried have worked. But I don't reckon that the ZStack designers put that #error in there just for the fun of it. Does anyone know what the issue is? Is there some subset of MAC/ZDO functionality that can safely co-exist?