MCPcopy Create free account
hub / github.com/bdring/FluidNC / id_value_object

Method id_value_object

FluidNC/src/JSONEncoder.cpp:281–286  ·  view source on GitHub ↗

id, value objects are used extensively by WebUI ESP420 so it is worthwhile to have helper routines for them.

Source from the content-addressed store, hash-verified

279// id, value objects are used extensively by WebUI ESP420 so it is worthwhile
280// to have helper routines for them.
281void JSONencoder::id_value_object(const char* id, const char* value) {
282 begin_object();
283 member("id", id);
284 member("value", value);
285 end_object();
286}
287
288void JSONencoder::id_value_object(const char* id, const std::string& value) {
289 id_value_object(id, value.c_str());

Callers 2

showSysStatsJSONMethod · 0.80
wifi_statsMethod · 0.80

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected