Commit 1ed830cc authored by 尹佳钦's avatar 尹佳钦

上电打印 ncp mac

parent 52cb12b2
......@@ -434,6 +434,8 @@ void emAfResetAndInitNCP(void)
"maximum outgoing transfer size");
}
// Set the manufacturing code. This is defined by ZigBee document 053874r10
// Ember's ID is 0x1002 and is the default, but this can be overridden in App Builder.
emberSetManufacturerCode(EMBER_AF_MANUFACTURER_CODE);
......@@ -470,6 +472,7 @@ void emAfResetAndInitNCP(void)
// Set the localEui64 global
ezspGetEui64(emLocalEui64);
// Initialize messageSentCallbacks table
emAfInitializeMessageSentCallbackArray();
}
......@@ -538,6 +541,10 @@ int emberAfMain(MAIN_FUNCTION_PARAMETERS)
// initialize the network co-processor (NCP)
emAfResetAndInitNCP();
printf("[%s][%d]\n",__FUNCTION__,__LINE__);
EmberEUI64 eui64;
emberAfGetEui64(eui64);
emberAfCorePrintln("~~~~~~~~~~~~~~~~~~~~~NCP MAC:");
emberAfPrintBigEndianEui64(eui64);
// initialize the ZCL framework ,(plug in) ,mqtt init is here
emAfInit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment