if(${IDF_TARGET} STREQUAL esp8266) set(requires zh_vector) else() set(requires zh_vector esp_timer esp_wifi) endif() idf_component_register(SRCS "zh_network.c" INCLUDE_DIRS "include" REQUIRES ${requires})