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

◆ bindAsync()

void fl::Remote::bindAsync ( const char * name,
fl::function< void(fl::ResponseSend &, const fl::json &)> fn,
fl::RpcMode mode = fl::RpcMode::ASYNC )
inline

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

Definition at line 98 of file remote.h.

100 {
101 mRpc.bindAsync(name, fl::move(fn), mode);
102 }
fl::Rpc mRpc
Definition remote.h:206
constexpr remove_reference< T >::type && move(T &&t) FL_NOEXCEPT
Definition s16x16x4.h:28

References fl::ASYNC, fl::fl::move(), and mRpc.

+ Here is the call graph for this function: