From e7202910b0c8c2b98ca165990925ca6f74ade0bf Mon Sep 17 00:00:00 2001 From: Wendal Chen Date: Tue, 7 Feb 2023 20:11:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20demo/fota=E7=9A=84=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E5=99=A8=E4=BB=A3=E7=A0=81=E5=86=99=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/fota/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/fota/main.lua b/demo/fota/main.lua index 6b9873452..148a29cd3 100644 --- a/demo/fota/main.lua +++ b/demo/fota/main.lua @@ -33,12 +33,12 @@ end -- 使用合宙iot平台进行升级 libfota.request(fota_cb) -sys.timerLoopStart(libfota, 3600000, fota_cb) +sys.timerLoopStart(libfota.request, 3600000, fota_cb) -- 使用自建服务器进行升级 -- local ota_url = "http://myserv.com/myapi/version=" .. _G.VERSION .. "&imei=" .. mobile.imei() -- libfota.request(fota_cb, ota_url) --- sys.timerLoopStart(libfota, 3600000, fota_cb, ota_url) +-- sys.timerLoopStart(libfota.request, 3600000, fota_cb, ota_url) -- 用户代码已结束--------------------------------------------- -- 结尾总是这一句