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

Method update

src/fl/remote/remote.cpp.hpp:272–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270// Server Coordination
271
272size_t Remote::update(u32 currentTimeMs) {
273 size_t processed = Server::pull(); // Pull requests from Server
274 size_t executed = tick(currentTimeMs); // Process scheduled tasks
275
276 // Push scheduled results as JSON-RPC responses
277 for (const auto& r : mResults) {
278 fl::json response = fl::json::object();
279 response.set("result", r.result);
280 // Note: We don't have the original request ID for scheduled calls
281 // This could be improved by storing the ID with RpcResult
282 mOutgoingQueue.push_back(response);
283 }
284
285 size_t sent = Server::push(); // Push responses from Server
286 return processed + executed + sent;
287}
288
289// Schema Methods
290

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected