led_cancel()

Cancel a request to flash the LEDs.

Synopsis:

#include <bps/led.h>
 
BPS_API int led_cancel(const char *id)

Arguments:

id
The identifier used for the request in led_request_color() or led_request_rgb().

Library:

libbps

Description:

The led_cancel() function cancels a previous request to flash the LEDs. If the application does not have the access_led_control capability, this function will fail.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.