FastLED
3.9.15
Loading...
Searching...
No Matches
types.cpp.hpp
Go to the documentation of this file.
1
#include "
fl/remote/types.h
"
2
namespace
fl
{
3
4
fl::json
RpcResult::to_json
()
const
{
5
fl::json
obj =
fl::json::object
();
6
obj.
set
(
"function"
,
functionName
);
7
obj.
set
(
"result"
,
result
);
8
obj.
set
(
"scheduledAt"
,
static_cast<
i64
>
(
scheduledAt
));
9
obj.
set
(
"receivedAt"
,
static_cast<
i64
>
(
receivedAt
));
10
obj.
set
(
"executedAt"
,
static_cast<
i64
>
(
executedAt
));
11
obj.
set
(
"wasScheduled"
,
wasScheduled
);
12
return
obj;
13
}
14
15
}
// namespace fl
fl::json::set
void set(const fl::string &key, const json &value) FL_NOEXCEPT
Definition
json.h:701
fl::json::object
static json object() FL_NOEXCEPT
Definition
json.h:692
fl::json
Definition
json.h:128
types.h
fl::i64
fl::i64 i64
Definition
s16x16x4.h:222
fl
Base definition for an LED controller.
Definition
crgb.hpp:179
fl::RpcResult::executedAt
u32 executedAt
Definition
types.h:19
fl::RpcResult::receivedAt
u32 receivedAt
Definition
types.h:18
fl::RpcResult::result
fl::json result
Definition
types.h:16
fl::RpcResult::wasScheduled
bool wasScheduled
Definition
types.h:20
fl::RpcResult::scheduledAt
u32 scheduledAt
Definition
types.h:17
fl::RpcResult::to_json
fl::json to_json() const
Serialize result to JSON object (compact single-line format)
Definition
types.cpp.hpp:4
fl::RpcResult::functionName
fl::string functionName
Definition
types.h:15
fl
remote
types.cpp.hpp
Generated on Tue Jun 16 2026 00:06:59 for FastLED by
1.13.2