MCPcopy Create free account
hub / github.com/FastLED/FastLED / bindAsync

Method bindAsync

src/fl/remote/remote.h:98–102  ·  view source on GitHub ↗

Register async method with ResponseSend& parameter (for ASYNC/ASYNC_STREAM modes) Signature: void(ResponseSend&, const json&) The ResponseSend& parameter provides send(), sendUpdate(), sendFinal() methods

Source from the content-addressed store, hash-verified

96 /// Signature: void(ResponseSend&, const json&)
97 /// The ResponseSend& parameter provides send(), sendUpdate(), sendFinal() methods
98 void bindAsync(const char* name,
99 fl::function<void(fl::ResponseSend&, const fl::json&)> fn,
100 fl::RpcMode mode = fl::RpcMode::ASYNC) {
101 mRpc.bindAsync(name, fl::move(fn), mode);
102 }
103
104 /// Get bound method by name for direct C++ invocation
105 template<class Sig>

Callers 2

FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected