diff --git a/apitest.json b/apitest.json new file mode 100644 index 0000000..602656c --- /dev/null +++ b/apitest.json @@ -0,0 +1,25 @@ +{ + "data": { + "msgid": 123456789, + "time": "2023-06-03T12:25:24+00:00", + "msgtype": 1, + "payloadtype": 1, + "payload": { + "applytype": 1, + "variables": { + "cronrecs": [ + { + "num": 1, + "del": 0, + "enab": 1, + "prev": 0, + "name": "Timer Name", + "cron": "*/5 * * * * *", + "exec": "SYSTEM,TEST,ARGUMENTS" + } + ] + } + } + }, + "signature": "6a11b872e8f766673eb82e127b6918a0dc96a42c5c9d184604f9787f3d27bcef" +} \ No newline at end of file diff --git a/src/CronTimers.c b/src/CronTimers.c index 5255592..294dee3 100644 --- a/src/CronTimers.c +++ b/src/CronTimers.c @@ -19,17 +19,6 @@ * Description: */ -//{ -// "data":{ -// "msgid":123456789, -// "time":"2023-06-03T12:25:24+00:00", -// "msgtype":1,"payloadtype":1, "payload":{"applytype":1, -// "variables":{ -// "cronrecs":[{ "num": 1, "del": 0, "enab": 1, "prev": 0, "name": "Timer Name", "obj": 0, "act": 0, -// "cron": "*/3 * * * * *", -// "exec": "OUTPUTS,TEST,ARGUMENTS" -// }] -// }}},"signature":"6a11b872e8f766673eb82e127b6918a0dc96a42c5c9d184604f9787f3d27bcef"} #include #include "esp_log.h" #include "webguiapp.h"