FastLED 3.10.8
Loading...
Searching...
No Matches

◆ schema()

json fl::Rpc::schema ( ) const

Returns flat schema document.

Format: {"schema": [["methodName", "returnType", [["param1", "type1"], ...]], ...]} The built-in "rpc.discover" method returns this schema.

Definition at line 369 of file rpc.cpp.hpp.

369 {
370 json doc = json::object();
371 doc.set("schema", methods());
372 return doc;
373}
json methods() const FL_NO_EXCEPT
Returns flat method array: [["name", "returnType", [["param1", "type1"], ...]], .....
Definition rpc.cpp.hpp:347
static json object() FL_NO_EXCEPT
Definition json.h:857

References fl::FL_NO_EXCEPT, methods(), fl::json::object(), and fl::json::set().

Referenced by handle().

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