diff --git a/nucleo-wb55-ble/STM32_WPAN/App/p2p_server_app.c b/nucleo-wb55-ble/STM32_WPAN/App/p2p_server_app.c index 85d667a..e90dff2 100644 --- a/nucleo-wb55-ble/STM32_WPAN/App/p2p_server_app.c +++ b/nucleo-wb55-ble/STM32_WPAN/App/p2p_server_app.c @@ -53,7 +53,7 @@ /* Private function prototypes -----------------------------------------------*/ /* USER CODE BEGIN PFP */ - +static void P2PS_Send_Notification(void); /* USER CODE END PFP */ /* Functions Definition ------------------------------------------------------*/ @@ -135,13 +135,16 @@ void P2PS_APP_Notification(P2PS_APP_ConnHandle_Not_evt_t *pNotification) void P2PS_APP_Init(void) { /* USER CODE BEGIN P2PS_APP_Init */ - + UTIL_SEQ_RegTask(CFG_TASK_SW1_BUTTON_PUSHED_ID, UTIL_SEQ_DEFAULT, P2PS_Send_Notification); /* USER CODE END P2PS_APP_Init */ return; } /* USER CODE BEGIN FD */ - +static void P2PS_Send_Notification(void) { + P2PS_STM_App_Update_Char(P2P_NOTIFY_CHAR_UUID, 0x00); + return; +} /* USER CODE END FD */ /*************************************************************