BLE blinky example, how to receive and handle any byte?

Hi,

BLE Blinky example handles only 2 states "on", "off" to control the single LED.

    if (led_state)
    {
        bsp_board_led_on(LEDBUTTON_LED);
        NRF_LOG_INFO("Received LED ON!");
    }
    else
    {
        bsp_board_led_off(LEDBUTTON_LED);
        NRF_LOG_INFO("Received LED OFF!");
    }

How can I modify the code to receive and handle arbitrary byte from Android app? Thank you!

Related