你好,第二种绑定我一直搞不懂怎么在官方的例子中实现,我现在用的GenericApp这个工程,
void GenericApp_HandleKeys( byte shift, byte keys )
{
zAddrType_t dstAddr;
if(keys & HAL_KEY_SW_6)
{
HalLedSet ( HAL_LED_1, HAL_LED_MODE_OFF );
// Initiate a Match Description Request (Service Discovery)
dstAddr.addrMode = AddrBroadcast;
dstAddr.addr.shortAddr = NWK_BROADCAST_SHORTADDR;
ZDP_MatchDescReq( &dstAddr, NWK_BROADCAST_SHORTADDR,
GENERICAPP_PROFID,
GENERICAPP_MAX_CLUSTERS, (cId_t *)GenericApp_ClusterList,
GENERICAPP_MAX_CLUSTERS, (cId_t *)GenericApp_ClusterList,
FALSE );
}
我是想用按键实现匹配指令的发送,可是一直不能建立绑定不知道是怎么回事,是不是没有设置INcluster
和Outcluster而且怎么设置啊??? 我Q 962446885 |