Bläddra i källkod

fix: idf5缺了socket.sntp函数 https://gitee.com/openLuat/LuatOS/issues/I6J6FP

Wendal Chen 2 år sedan
förälder
incheckning
1a95433acf
2 ändrade filer med 3 tillägg och 0 borttagningar
  1. 2 0
      luatos/components/luat/CMakeLists.txt
  2. 1 0
      luatos/include/luat_conf_bsp.h

+ 2 - 0
luatos/components/luat/CMakeLists.txt

@@ -71,6 +71,7 @@ idf_component_register(SRC_DIRS ${LUATOS_ROOT}/luat/modules
                                 ${LUATOS_ROOT}/components/network/libftp
                                 ${LUATOS_ROOT}/components/network/libhttp
                                 ${LUATOS_ROOT}/components/network/libemqtt
+                                ${LUATOS_ROOT}/components/network/libsntp
                                 ${LUATOS_ROOT}/components/ethernet/common
                                 ${LUATOS_ROOT}/components/ethernet/w5500
                                 ${LUATOS_ROOT}/components/common
@@ -130,6 +131,7 @@ idf_component_register(SRC_DIRS ${LUATOS_ROOT}/luat/modules
                                 ${LUATOS_ROOT}/components/network/libftp
                                 ${LUATOS_ROOT}/components/network/libhttp
                                 ${LUATOS_ROOT}/components/network/libemqtt
+                                ${LUATOS_ROOT}/components/network/libsntp
                                 ${LUATOS_ROOT}/components/ethernet/common
                                 ${LUATOS_ROOT}/components/ethernet/w5500
                                 ${LUATOS_ROOT}/components/common

+ 1 - 0
luatos/include/luat_conf_bsp.h

@@ -31,6 +31,7 @@
 #define LUAT_USE_LWIP
 #define LUAT_USE_DNS
 #define LUAT_USE_TLS
+#define LUAT_USE_SNTP
 // FTP暂不可用
 // #define LUAT_XXX_USE_FTP