主要函数:uint16 SampleApp_ProcessEvent( uint8 task_id, uint16 events MSGpkt=(afIncomingMSGPacket_t*)osal_msg_receive(SampleApp_TaskID Receivedwhen received(OTA) endpointcase AF_INCOMING_MSG_CMD: SampleApp_MessageMSGCB( MSGpkt Receivedwhenever devicechanges state networkcase ZDO_STATE_CHANGE: SampleApp_NwkState HalLedSet(HAL_LED_1,HAL_LED_MODE_ON