Dozingfiretruck 3 éve
szülő
commit
68f805e8e1
2 módosított fájl, 6 hozzáadás és 0 törlés
  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")