添加 tuya_gw_replacement_enable(); 后编译,打印信息显示
/home/book/Documents/tuya/Projects/NUC972_TuyaOS-3.7.0/software/TuyaOS/libs/libty_module_gw_app.a(tuya_gw_fault_replace.c.o): In function __tuya_gw_user_flt_rpl_restore_validity_check':
tuya_z3_getZigbeeVer'
/root/workspace_temp/cde/ci_gw_technology_group/tuyaos-gw-integrated/components/gw_fault_replace/src/tuya_gw_fault_replace.c:709: undefined reference to
/home/book/Documents/tuya/Projects/NUC972_TuyaOS-3.7.0/software/TuyaOS/libs/libty_module_gw_app.a(tuya_gw_fault_replace.c.o): In function __tuya_gw_user_flt_rpl_restore_cb':
tuya_z3_getNcpMac'
/root/workspace_temp/cde/ci_gw_technology_group/tuyaos-gw-integrated/components/gw_fault_replace/src/tuya_gw_fault_replace.c:854: undefined reference to
/home/book/Documents/tuya/Projects/NUC972_TuyaOS-3.7.0/software/TuyaOS/libs/libty_module_gw_app.a(tuya_gw_fault_replace.c.o): In function __tuya_gw_user_flt_rpl_restore_stage2_cb':
tuya_z3_fault_replace'
/root/workspace_temp/cde/ci_gw_technology_group/tuyaos-gw-integrated/components/gw_fault_replace/src/tuya_gw_fault_replace.c:889: undefined reference to
/root/workspace_temp/cde/ci_gw_technology_group/tuyaos-gw-integrated/components/gw_fault_replace/src/tuya_gw_fault_replace.c:891: undefined reference to tuya_z3_GetNetInfo'
tuya_isEncrypt'
/root/workspace_temp/cde/ci_gw_technology_group/tuyaos-gw-integrated/components/gw_fault_replace/src/tuya_gw_fault_replace.c:898: undefined reference to
/root/workspace_temp/cde/ci_gw_technology_group/tuyaos-gw-integrated/components/gw_fault_replace/src/tuya_gw_fault_replace.c:900: undefined reference to `tuya_isRexEncryptLock'
collect2: error: ld returned 1 exit status
Makefile:65: recipe for target 'build_app' failed
make[1]: *** [build_app] Error 1
make[1]: Leaving directory '/home/book/Documents/tuya/Projects/NUC972_TuyaOS-3.7.0/software/TuyaOS/apps/tuyaos_demo_gw'
/home/book/Documents/tuya/Projects/NUC972_TuyaOS-3.7.0/software/TuyaOS/scripts/mk/app.mk:186: recipe for target 'app_by_name' failed
make: *** [app_by_name] Error 2