MCPcopy Create free account
hub / github.com/ImplFerris/esp32-projects / LedResponse

Class LedResponse

wifi-led/src/web.rs:74–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73#[derive(serde::Serialize)]
74struct LedResponse {
75 success: bool,
76}
77
78async fn led_handler(input: picoserve::extract::Json<LedRequest>) -> impl IntoResponse {
79 crate::led::LED_STATE.store(input.0.is_on, Ordering::Relaxed);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected