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

Function led_handler

wifi-led/src/web.rs:78–82  ·  view source on GitHub ↗
(input: picoserve::extract::Json<LedRequest>)

Source from the content-addressed store, hash-verified

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);
80
81 picoserve::response::Json(LedResponse { success: true })
82}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected