riot_coap_handler_demos::led

Function single_led_maybe

Source
pub fn single_led_maybe<const I: u8>(
    led: Result<LED<I>, LedNotPresent>,
) -> impl Handler + Reporting
Expand description

Handler for a single LED, which is only shown if the LED is present.

See single_led() for how it is accessed.