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

◆ getTransportCallbacks()

fl::pair< fl::function< fl::optional< fl::json >()>, fl::function< void(const fl::json &)> > fl::net::ble::getTransportCallbacks ( TransportState * state)

Get RequestSource and ResponseSink lambdas for fl::Remote.

Parameters
statePointer returned by createTransport (must outlive returned lambdas)
Returns
Pair of {RequestSource, ResponseSink} ready for fl::Remote constructor

Definition at line 36 of file ble.cpp.hpp.

36 {
37 FL_ERROR("BLE not implemented on this platform");
38 return {
40 fl::function<void(const fl::json&)>([](const fl::json&) {})
41 };
42}
#define FL_ERROR(X)
Definition log.h:219
Optional< T > optional
Definition optional.h:16

References FL_ERROR, and FL_NOEXCEPT.

Referenced by AutoResearchRemoteControl::startBleRemote().

+ Here is the caller graph for this function: