led_request_color()

Request that the LEDs flash a named color.

Synopsis:

#include <bps/led.h>
 
BPS_API int led_request_color(const char *id, led_color_t color, int blink_count)

Arguments:

id
An identifier for this request. This is used when updating a request by calling led_request_color() or led_request_rgb() again or when canceling a request with led_cancel().
color
The color to flash the LEDs.
blink_count
The number of times to blink. Use a value of 0 to continue blinking until canceled or until the application exits.

Library:

libbps

Description:

The led_request() function requests that the LEDs flash the named color and the specified number of times. 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.