This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ble blinky example

hello can someone help me solve this issue. i am not being able to controll this led . if i send any number the led will always turn on

Regards

static void led_col_write_handler(uint16_t conn_handle, ble_lbs_t * p_lbs,uint32_t led_color)
{
if (led_color=22)
{
bsp_board_led_on(LEDBUTTON_LED);
NRF_LOG_INFO("Received LED ON!");

}
else if (led_color=23)
{
bsp_board_led_off(LEDBUTTON_LED);
NRF_LOG_INFO("Received LED OFF!");

}
}

Parents Reply Children
Related