소스 검색

add:添加sntp

Dozingfiretruck 3 년 전
부모
커밋
68f805e8e1
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      application/include/luat_conf_bsp.h
  2. 4 0
      xmake.lua

+ 2 - 0
application/include/luat_conf_bsp.h

@@ -78,6 +78,8 @@
 #define LUAT_USE_DNS  1
 #define LUAT_USE_NETWORK 1
 #define LUAT_USE_TLS 1
+#define LUAT_USE_SNTP 1
+
 // #define LUAT_USE_IOTAUTH 1
 #define LUAT_USE_LORA 1
 // #define LUAT_USE_MLX90640 1

+ 4 - 0
xmake.lua

@@ -414,6 +414,10 @@ if with_luatos then
     add_includedirs(luatos.."components/network/libemqtt",{public = true})
     add_files(luatos.."components/network/libemqtt/*.c")
 
+    -- sntp
+    add_includedirs(luatos.."components/network/libsntp",{public = true})
+    add_files(luatos.."components/network/libsntp/*.c")
+
     -- http_parser
     add_includedirs(luatos.."components/network/http_parser",{public = true})
     add_files(luatos.."components/network/http_parser/*.c")