Hello,
we have a project on:
Periperal: experimental ble_app_blinky / and
Central: experimental ble_app_blinky c
We have add suplementary:
LEDBUTTON_LED4 ( BSP_BOARD_LED_3)
LEDBUTTON_BUTTON2_PIN" (BSP_BUTTON_1)
For the moment when we push "button2" or "button1"
on the peripheral, everytime the same "led 3" is toggle on the central.
How and where we must do the assignments
that when we push "button 2" on peripheral the led 4 is toggle on central,
and when we push "button1" on peripheral the led 3 is toggel on central?
(And where we must do the assigment reverse from central to peripheral)
We are not so good in programming. Can you please send us the code. Thank you very much. Best regards MC
Ist maybe her to ad a code?
case BLE_LBS_C_EVT_BUTTON_NOTIFICATION:
{
NRF_LOG_INFO("Button state changed on peer to 0x%x.\r\n", p_lbs_c_evt->params.button.button_state);
if (p_lbs_c_evt->params.button.button_state)
{
bsp_board_led_on(LEDBUTTON_LED);
}
else
{
bsp_board_led_off(LEDBUTTON_LED);
}
} break; // BLE_LBS_C_EVT_BUTTON_NOTIFICATION