Browse Source

ble: Add notification handler

ble
Andreas Berthoud 5 years ago
parent
commit
7f0d97cbec
  1. 9
      nucleo-wb55-ble/STM32_WPAN/App/p2p_server_app.c

9
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 */
/*************************************************************

Loading…
Cancel
Save