data_gathering/beacon_node/ble_findme.c
static void ble_start_advertisement(void)
{
    cy_en_ble_api_result_t ble_api_result;
    
    if((CY_BLE_ADV_STATE_ADVERTISING != Cy_BLE_GetAdvertisementState()) &&
       (Cy_BLE_GetNumOfActiveConn() < CY_BLE_CONN_COUNT))
    {
        ble_api_result = Cy_BLE_GAPP_StartAdvertisement(
                            CY_BLE_ADVERTISING_FAST, 
                            CY_BLE_PERIPHERAL_CONFIGURATION_0_INDEX);
        
        if(CY_BLE_SUCCESS != ble_api_result)
        {
            printf("[ERROR] : Failed to start advertisement \r\n");
        }
    }
}
/******************************************************************************
* Function Name: ble_start_advertisement
*******************************************************************************
* Summary:
*  This function starts the advertisement.
*
******************************************************************************/
Function Name: ble_start_advertisement
Summary:
This function starts the advertisement.
Function Name : ble_start_advertisement Summary : This function starts the advertisement .
static void ble_start_advertisement(void)
{
    cy_en_ble_api_result_t ble_api_result;
    if((CY_BLE_ADV_STATE_ADVERTISING != Cy_BLE_GetAdvertisementState()) &&
       (Cy_BLE_GetNumOfActiveConn() < CY_BLE_CONN_COUNT))
    {
        ble_api_result = Cy_BLE_GAPP_StartAdvertisement(
                            CY_BLE_ADVERTISING_FAST, 
                            CY_BLE_PERIPHERAL_CONFIGURATION_0_INDEX);
        if(CY_BLE_SUCCESS != ble_api_result)
        {
            printf("[ERROR] : Failed to start advertisement \r\n");
        }
    }
}
static void ble_start_advertisement ( void ) { cy_en_ble_api_result_t ble_api_result ; if ( ( CY_BLE_ADV_STATE_ADVERTISING != Cy_BLE_GetAdvertisementState ( ) ) && ( Cy_BLE_GetNumOfActiveConn ( ) < CY_BLE_CONN_COUNT ) ) { ble_api_result = Cy_BLE_GAPP_StartAdvertisement ( CY_BLE_ADVERTISING_FAST , CY_BLE_PERIPHERAL_CONFIGURATION_0_INDEX ) ; if ( CY_BLE_SUCCESS != ble_api_result ) { printf ( " \r \n " ) ; } } }
Function Name: ble_start_advertisement
Summary:
This function starts the advertisement.
Function Name : ble_start_advertisement Summary : This function starts the advertisement .