Browse Source

ble: Log when advertising starts

ble
Andreas Berthoud 4 years ago
parent
commit
849b63628f
  1. 6
      nucleo-wb55-ble/STM32_WPAN/App/app_ble.c

6
nucleo-wb55-ble/STM32_WPAN/App/app_ble.c

@ -37,7 +37,7 @@
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "commands.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
@ -485,7 +485,8 @@ void APP_BLE_Init( void )
/**
* Start to Advertise to be connected by P2P Client
*/
Adv_Request(APP_BLE_FAST_ADV);
log_debug("APP_BLE_Init", "Start advertising...", 0);
Adv_Request(APP_BLE_FAST_ADV);
/* USER CODE BEGIN APP_BLE_Init_2 */
@ -524,6 +525,7 @@ SVCCTL_UserEvtFlowStatus_t SVCCTL_App_Notification( void *pckt )
}
/* restart advertising */
log_debug("SVCCTL_App_Notification", "Start advertising...", 0);
Adv_Request(APP_BLE_FAST_ADV);
/**

Loading…
Cancel
Save