@@ -135,19 +135,19 @@ bool do_process_c009_delay_queue(int controller_number, const Queue_element_base
135
135
// Create nested objects in "ESP":
136
136
jsonString += to_json_object_value (F (" name" ), Settings.getName ());
137
137
jsonString += ' ,' ;
138
- jsonString += to_json_object_value (F (" unit" ), String (Settings.Unit ));
138
+ jsonString += to_json_object_value (F (" unit" ), static_cast < int > (Settings.Unit ));
139
139
jsonString += ' ,' ;
140
- jsonString += to_json_object_value (F (" version" ), String (Settings.Version ));
140
+ jsonString += to_json_object_value (F (" version" ), static_cast < int > (Settings.Version ));
141
141
jsonString += ' ,' ;
142
- jsonString += to_json_object_value (F (" build" ), String (Settings.Build ));
142
+ jsonString += to_json_object_value (F (" build" ), static_cast < int > (Settings.Build ));
143
143
jsonString += ' ,' ;
144
144
jsonString += to_json_object_value (F (" build_notes" ), F (BUILD_NOTES));
145
145
jsonString += ' ,' ;
146
146
jsonString += to_json_object_value (F (" build_git" ), getValue (LabelType::GIT_BUILD));
147
147
jsonString += ' ,' ;
148
- jsonString += to_json_object_value (F (" node_type_id" ), String (NODE_TYPE_ID));
148
+ jsonString += to_json_object_value (F (" node_type_id" ), static_cast < int > (NODE_TYPE_ID));
149
149
jsonString += ' ,' ;
150
- jsonString += to_json_object_value (F (" sleep" ), String (Settings.deepSleep_wakeTime ));
150
+ jsonString += to_json_object_value (F (" sleep" ), static_cast < int > (Settings.deepSleep_wakeTime ));
151
151
152
152
// embed IP, important if there is NAT/PAT
153
153
// char ipStr[20];
@@ -180,7 +180,7 @@ bool do_process_c009_delay_queue(int controller_number, const Queue_element_base
180
180
jsonString += ' ,' ;
181
181
jsonString += to_json_object_value (F (" valueName" ), getTaskValueName (element._taskIndex , x));
182
182
jsonString += ' ,' ;
183
- jsonString += to_json_object_value (F (" type" ), String ( static_cast <int >(element.sensorType ) ));
183
+ jsonString += to_json_object_value (F (" type" ), static_cast <int >(element.sensorType ));
184
184
jsonString += ' ,' ;
185
185
jsonString += to_json_object_value (F (" value" ), element.txt [x]);
186
186
}
0 commit comments