--- 模块功能:远程升级功能测试(使用Luat iot平台). -- 开机后立即执行一次升级功能,仅执行一次,如果升级包下载成功,自动重启 -- @author openLuat -- @module update.testUpdate1 -- @license MIT -- @copyright openLuat -- @release 2018.03.27 module(...,package.seeall) --[[ 使用Luat物联云平台的升级服务器时,按照如下步骤操作 1、在main.lua中定义PRODUCT_KEY变量 2、加载update模块 require"update" 3、调用update.request()即可 ]] require"update" --合宙IOT update.request() --第三方URL --update.request(nil,"###http://tools.openluat.com/api/resource/dfota/dfota_final_LuatOS_LUAT_I_20230601155746_803109.bin") sys.timerLoopStart(log.info,1000,"testUpdate.version",rtos.get_version(),_G.VERSION)