api example json added to separate file
This commit is contained in:
parent
587fbbd80b
commit
e25f951081
25
apitest.json
Normal file
25
apitest.json
Normal 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"
|
||||||
|
}
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user