FastLED 3.9.15
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 264 of file rpc.cpp.hpp.

264 {
265 json doc = json::object();
266 doc.set("schema", methods());
267 return doc;
268}
json methods() const
Returns flat method array: [["name", "returnType", [["param1", "type1"], ...]], .....
Definition rpc.cpp.hpp:242
static json object() FL_NOEXCEPT
Definition json.h:692

References 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: