FastLED 3.10.9
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 399 of file rpc.cpp.hpp.

399 {
400 json doc = json::object();
401 doc.set("schema", methods());
402 return doc;
403}
json methods() const FL_NO_EXCEPT
Returns flat method array: [["name", "returnType", [["param1", "type1"], ...]], .....
Definition rpc.cpp.hpp:377
static json object() FL_NO_EXCEPT
Definition json.h:864

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: