File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 5
5
6
6
#include " ui.h"
7
7
8
+ void Interface::frame (const String &id, const String &value){
9
+ StaticJsonDocument<256 > obj;
10
+ obj[FPSTR (P_html)] = F (" iframe" );;
11
+ obj[FPSTR (P_type)] = F (" frame" );
12
+ obj[FPSTR (P_id)] = id;
13
+ obj[FPSTR (P_value)] = value;
14
+
15
+ if (!json_frame_add (obj.as <JsonObject>())) {
16
+ frame (id, value);
17
+ }
18
+ }
19
+
20
+ void Interface::frame2 (const String &id, const String &value){
21
+ StaticJsonDocument<256 > obj;
22
+ obj[FPSTR (P_html)] = F (" iframe2" );;
23
+ obj[FPSTR (P_type)] = F (" frame" );
24
+ obj[FPSTR (P_id)] = id;
25
+ obj[FPSTR (P_value)] = value;
26
+
27
+ if (!json_frame_add (obj.as <JsonObject>())) {
28
+ frame2 (id, value);
29
+ }
30
+ }
31
+
8
32
void Interface::frame (const String &id, const String &value){
9
33
StaticJsonDocument<256 > obj;
10
34
obj[FPSTR (P_id)] = id;
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ class Interface {
105
105
void json_section_end ();
106
106
107
107
void frame (const String &id, const String &value);
108
+ void frame2 (const String &id, const String &value);
108
109
void value (const String &id, bool html = false );
109
110
void value (const String &id, const String &val, bool html = false );
110
111
void hidden (const String &id);
You can’t perform that action at this time.
0 commit comments