设置定时任务:

 {
     "cmd":"swtimer",
     "key":"set",
     "bresn":"B360040000F354E3134525348",
     "ctrid":"94A9901BBE1C",
     "ontimer":{
         "timer1":
            {
                "h":15,"m":39,"s":0,"w":8
            }
     },
     "offtimer":
     {
         "timer1":
             {
                "h":15,"m":39,"s":30,"w":8
             }
     }
 }

Body 字段说明

名称 类型 必填 说明
cmd string Y swtimer
key string Y set
bresn string Y 断路器序列号
ctrid string Y 密钥
on_timer object Y 定时开启时间设置
off_timer object Y 定时关闭时间设置

timer1 字段说明

字段名称 类型 说明
h int 小时,0-23
m int 分钟,0-59
s int 秒钟,0-59
w int 循环日期,0-127。例子:周日、一、二、三、四、五、六 分别是:1、2、4、8、16、32、64
作者:阮德明  创建时间:2025-11-21 16:45
最后编辑:阮德明  更新时间:2025-12-12 10:25