工程相关
esp-idf 5.4 需要使用到sntp服务,cmake文件里需要依赖的组件名称是什么?
根据您需要用到的组件头文件添加依赖,如需sntp服务,请参考:
#include "esp_netif_sntp.h"
#include "lwip/ip_addr.h"
#include "esp_sntp.h"
在内层CMakelists.txt中添加依赖 REQUIRES esp_netif lwip 需找到头文件所在位置,再对其内层CMakelists.txt中添加依赖,例如上头文件所在位置如下,所 以添加的组件名称为esp_netif 和 lwip 添加其他组件方法一致。
components/esp_netif/include/esp_netif_sntp.h
components/lwip/lwip/src/include/lwip/ip_addr.h
components/lwip/include/apps/esp_sntp.h
ESP-IDF中如何开启psram和flash的120MHz时钟?
menuconfig中使能Make experimental features visible选项即可。
