api example json added to separate file

This commit is contained in:
Bogdan Pilyugin 2023-10-11 20:49:16 +02:00
parent 587fbbd80b
commit e25f951081
2 changed files with 25 additions and 11 deletions

25
apitest.json Normal file
View File

@ -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"
}

View File

@ -19,17 +19,6 @@
* Description: * 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 <CronTimers.h> #include <CronTimers.h>
#include "esp_log.h" #include "esp_log.h"
#include "webguiapp.h" #include "webguiapp.h"