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

Method JSONencoder

FluidNC/src/JSONEncoder.cpp:10–12  ·  view source on GitHub ↗

Constructor. If _encapsulate is true, the output is encapsulated in [MSG:JSON: ...] lines

Source from the content-addressed store, hash-verified

8// Constructor. If _encapsulate is true, the output is
9// encapsulated in [MSG:JSON: ...] lines
10JSONencoder::JSONencoder(Channel* channel, const char* json_tag) : level(0), _channel(channel), _json_tag(json_tag), category("nvs") {
11 count[level] = 0;
12}
13JSONencoder::JSONencoder(JsonCallback callback) : level(0), _callback(callback) {
14 count[level] = 0;
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected