FastLED 3.10.6
Loading...
Searching...
No Matches

◆ buildEnvelope()

fl::string fl::fled::anonymous_namespace{builder.cpp.hpp}::buildEnvelope ( const fl::string & screenMapJson,
const fl::string & channelsJson,
const fl::string & videoColorJson )

Definition at line 40 of file builder.cpp.hpp.

42 {
43 fl::string out;
44 out += '{';
45 bool first = true;
46 if (!screenMapJson.empty()) {
47 out += "\"map\":";
48 out += screenMapJson;
49 first = false;
50 }
51 if (!channelsJson.empty()) {
52 if (!first) out += ',';
53 out += "\"channels\":";
54 out += channelsJson;
55 first = false;
56 }
57 if (!videoColorJson.empty()) {
58 if (!first) out += ',';
59 out += "\"video\":{\"color\":";
60 out += videoColorJson;
61 out += '}';
62 first = false;
63 }
64 out += '}';
65 return out;
66}
bool empty() const FL_NO_EXCEPT

References buildEnvelope(), and fl::FL_NO_EXCEPT.

Referenced by buildEnvelope().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: