FastLED 3.9.15
Loading...
Searching...
No Matches

◆ printJsonRaw()

void printJsonRaw ( const fl::json & json,
const char * prefix = "REMOTE: " )

Print JSON directly to Serial, bypassing fl::println and ScopedLogDisable This ensures RPC responses are always visible regardless of log level.

Parameters
jsonJSON object to output
prefixOptional prefix (default: "REMOTE: ")

Definition at line 54 of file AutoResearchRemote.cpp.

54 {
55 // Serialize and print response
56 fl::string formatted = fl::formatJsonResponse(json, prefix);
57 fl::println(formatted.c_str());
58 fl::flush();
59}
const char * c_str() const FL_NOEXCEPT
fl::string formatJsonResponse(const fl::json &response, const char *prefix)
Serialize JSON response to a string.
void println(const char *str) FL_NOEXCEPT
bool flush(u32 timeoutMs)

References fl::basic_string::c_str(), fl::flush(), fl::formatJsonResponse(), and fl::println().

+ Here is the call graph for this function: